geost.base.LayeredData#
- class geost.base.LayeredData(df: DataFrame, has_inclined: bool = False)[source]#
A class to hold layered data objects (i.e. containing “tops” and “bottoms”) like borehole descriptions which can be used for selections and exports.
- Parameters:
df (pd.DataFrame) – Pandas DataFrame containing the data. Mandatory columns that must be present in the DataFrame are: “nr”, “x”, “y”, “surface”, “top” and “bottom”. Otherwise, many methods in the class will not work.
has_inclined (bool, optional) – If True, the data also contains inclined objects which means the top of layers is not in the same x,y-location as the bottom of layers.
Methods
__init__
(df[, has_inclined])get_cumulative_layer_thickness
(column, values)Get the cumulative thickness of layers where a column contains a specified search value or values.
get_layer_top
(column, values)Find the depth at which a specified layer first occurs.
select_by_condition
(condition[, invert])Select data using a manual condition that results in a boolean mask.
select_by_values
(column, selection_values[, how])Select data based on the presence of given values in a given column.
slice_by_values
(column, selection_values[, ...])Slice rows from data based on matching condition.
slice_depth_interval
([upper_boundary, ...])Slice data based on given upper and lower boundaries.
to_collection
([horizontal_reference, ...])Create a collection from this instance of LayeredData.
to_csv
(file, **kwargs)Write data to csv file.
to_datafusiontools
(columns[, outfile, ...])Export all data to the core "Data" class of Deltares DataFusionTools.
to_header
([horizontal_reference, ...])Generate a
PointHeader
from this instance of LayaredData.to_kingdom
(outfile[, tdstart, vw, vs])Write data to 2 csv files: 1) interval data and 2) time-depth chart.
to_multiblock
(data_columns[, radius, ...])Create a Pyvista MultiBlock object from the data that can be used for 3D plotting and other spatial analyses.
to_parquet
(file, **kwargs)Write data to parquet file.
to_qgis3d
(outfile[, ...])Write data to geopackage file that can be directly loaded in the Qgis2threejs plugin.
to_vtm
(outfile, data_columns[, radius, ...])Save data as VTM (Multiblock file, an XML VTK file pointing to multiple other VTK files) for viewing in external GUI software like ParaView or other VTK viewers.
Attributes