saltcavern

The central module containing all code dealing with BGR data.

This module directly contains the code dealing with importing data of Bundesanstalt für Geowissenschaften und Rohstoffe (BGR) from the databundle into the database.

class SaltcavernData(dependencies)[source]

Bases: Dataset

Insert the BGR saline structures into the database.

Insert the BGR saline structures into the database by executing the function to_postgres().

Dependencies
Resulting tables
  • boundaries.inspee_saltstructures is created

name: str = 'SaltcavernData'
sources: DatasetSources = DatasetSources(tables={}, files={'inspee_saltstructures': 'data_bundle_egon_data/hydrogen_storage_potential_saltstructures/Potenzialbewertung_InSpEE_InSpEE_DS.shp'}, urls={})

The sources used by the datasets. Could be tables, files and urls

targets: DatasetTargets = DatasetTargets(tables={'saltcaverns': 'boundaries.inspee_saltstructures'}, files={})

The targets created by the datasets. Could be tables and files

version: str = '0.0.3'
to_postgres()[source]

Write BGR saline structures to database.

This function inserts data into the database and has no return.