gemgis.misc.get_meta_data_df
gemgis.misc.get_meta_data_df#
- gemgis.misc.get_meta_data_df(data: str, name: str = 'GD', return_gdf: bool = True) Union[pandas.core.frame.DataFrame, geopandas.geodataframe.GeoDataFrame] #
Function to create a dataframe with coordinates and meta data of the different boreholes
- Parameters
data (str) – String containing the borehole data
name (str) – Prefix for custom index for boreholes, default ‘GD’, e.g.
name='GD'
return_gdf (bool) – Variable to return GeoDataFrame. Options include:
True
orFalse
, default set toTrue
- Returns
coordinates_dataframe_new – (Geo-)DataFrame containing the coordinates and meta data of the boreholes
- Return type
Union[pd.DataFrame, gpd.geodataframe.GeoDataFrame]
New in version 1.0.x.
Changed in version 1.1.7.
Fixed bug in parsing PDF.
Example
>>> # Loading Libraries and File >>> import gemgis as gg >>> content = gg.misc.load_pdf(path='file.pdf') >>> content 'Stammdaten - 2521/ 5631/ 1 - Bnum: 196747 . . Objekt / Name :B. 19 ESCHWEILER Bohrungs- / Aufschluß-Nr. :19 Archiv-Nr. : Endteufe [m] :70.30 Stratigraphie der Endteufe :Karbon . TK 25 :Eschweiler [TK 5103] Ort / Gemarkung :Eschweiler/Weißweiler GK R...'
>>> # Creating meta data DataFrame >>> gdf = gg.misc.get_meta_data_df(data=content, name='GD', return_gdf=True) >>> gdf Index DABO No. Name Number Depth X Y Z X_GK Y_GK ... Kind Procedure Confidentiality Record Type Lithlog Version Quality Drilling Period Remarks Availability Lithlog geometry 0 GD0001 DABO_196747 B.19ESCHWEILER 19 70.30 32310019.32 5633520.32 130.00 2521370.00 5631910.00 ... Bohrung vertraulich, offen nach Einzelfallprüfung; Übertragung eines alten Archivbestandes 1 Schichtdaten von guter Qualität; genaue strati... Original-Schichtenverzeichnis liegt vor POINT (32310019.320 5633520.320) 1 GD0002 DABO_196748 B.16ESCHWEILER 16 37.61 2310327.14 5632967.35 122.00 2521700.00 5631370.00 ... Bohrung vertraulich, offen nach Einzelfallprüfung; Übertragung eines alten Archivbestandes 1 Schichtdaten von guter Qualität; genaue strati... Original-Schichtenverzeichnis liegt vor POINT (32310327.140 5632967.350)
See also
load_pdf
Loading PDF data as string
get_meta_data
Getting the meta data of a well
get_stratigraphic_data
Getting the stratigraphic data of a well
get_stratigraphic_data_df
Getting the stratigraphic data of wells as DataFrame