gemgis.utils.show_number_of_data_points#

gemgis.utils.show_number_of_data_points(geo_model)#

Adding the number of Interfaces and Orientations to the GemPy Surface dataframe

Parameters

geo_model (gp.core.model.Project) – GemPy geo_model object

Returns

geo_model.surfaces – DataFrame-like object containing surface information and number of data points

Return type

gempy.core.model.RestrictingWrapper

New in version 1.0.x.

Example

>>> # Loading Libraries and displaying surface DataFrame of a GemPy geo_model
>>> import gemgis as gg
>>> geo_model.surfaces
    surface     series          order_surfaces  color   id
0   Sand1       Strat_Series    1               #015482 1
1   Ton         Strat_Series    2               #9f0052 2
2   basement    Strat_Series    3               #ffbe00 3
>>> # Adding number of data points to DataFrame
>>> gg.utils.show_number_of_data_points(geo_model=geo_model)
    surface     series          order_surfaces  color   id  No. of Interfaces   No. of Orientations
0   Sand1       Strat_Series    1               #015482 1   95                  0
1   Ton         Strat_Series    2               #9f0052 2   36                  8
2   basement    Strat_Series    3               #ffbe00 3   0                   0