gemgis.visualization.add_row_to_boreholes#

gemgis.visualization.add_row_to_boreholes(df_groups: List[pandas.core.frame.DataFrame]) List[pandas.core.frame.DataFrame]#

Adding additional row to each borehole for further processing for 3D visualization

Parameters

df_groups (List[pd.DataFrame]) – List of Pandas DataFrames containing the borehole data

Returns

df_groups – List of Pandas DataFrames with additional row

Return type

List[pd.DataFrame]

New in version 1.0.x.

Example

>>> # Loading Libraries and File
>>> import gemgis as gg
>>> import pandas as pd
>>> df = pd.read_csv('file.csv')
>>> df
    Unnamed: 0  Index   Name                            X           Y           Z       Altitude    Depth   formation       geometry
0   2091        GD1017  ForschungsbohrungMünsterland1   32386176.36 5763283.15  27.00   107.00      5956.00 OberCampanium   POINT (32386176.36 5763283.15)
1   2092        GD1017  ForschungsbohrungMünsterland1   32386176.36 5763283.15  -193.00 107.00      5956.00 UnterCampanium  POINT (32386176.36 5763283.15)
>>> # Adding row to DataFrames
>>> grouped = df.groupby(['Index'])
>>> df_groups = [grouped.get_group(x) for x in grouped.groups]
>>> list_df = gg.visualization.add_row_to_boreholes(df_groups)
>>> list_df[0]
    Unnamed: 0  Index   Name                            X           Y           Z       Altitude    Depth   formation       geometry
0   NaN         GD1017  ForschungsbohrungMünsterland1   32386176.36 5763283.15  27.00   107.00      5956.00                 NaN
0   2091        GD1017  ForschungsbohrungMünsterland1   32386176.36 5763283.15  27.00   107.00      5956.00 OberCampanium   POINT (32386176.36 5763283.15)
1   2092        GD1017  ForschungsbohrungMünsterland1   32386176.36 5763283.15  -193.00 107.00      5956.00 UnterCampanium  POINT (32386176.36 5763283.15)

See also

create_lines_from_points

Creating lines from points

create_borehole_tube

Creating borehole tube

create_borehole_tubes

Creating tubes from lines

create_borehole_labels

Creating labels for boreholes

create_boreholes_3d

Creating PyVista objects for plotting