geost.accessors.data.LayeredData#
- class geost.accessors.data.LayeredData(df: DataFrame)[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.
Methods
__init__(df)get_cumulative_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, starting at min_depth and looking downwards until the first layer of min_thickness is found of the specified layer.
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([has_inclined, ...])Create a collection from this instance of LayeredData.
to_datafusiontools(columns[, outfile, ...])Export all data to the core "Data" class of Deltares DataFusionTools.
to_header([horizontal_reference])Generate a
PointHeaderfrom this instance of LayeredData.to_kingdom(outfile[, tdstart, vw, vs])Write data to 2 csv files: 1) interval data and 2) time-depth chart.
to_pyvista_cylinders(displayed_variables[, ...])Create a Pyvista MultiBlock object of cylinder-shaped geometries to represent boreholes.
to_pyvista_grid(displayed_variables[, radius])Create a PyVista UnstructuredGrid object of the data in this instance.
to_qgis3d(outfile[, ...])Write data to geopackage file that can be directly loaded in the Qgis2threejs plugin.