geost.accessor.GeostFrame#
- class geost.accessor.GeostFrame(dataframe: DataFrame)[source]#
-
Methods
__init__(dataframe)Calculate the thickness of layers in the data.
determine_end_depth()Determines the end depth of each survey in the data, by looking at the difference between the surface and the bottom of the last layer in each survey.
get_cumulative_thickness(column, values)Get the cumulative thickness of layers where a column contains a specified search value or values, or falls within a specified range.
get_layer_base(column, values[, min_thickness])get_layer_top(column, values[, ...])Find the top depth in individual survey ids where a column in a Pandas DataFrame contains specified search value or values, or falls within a specified range.
select_by_condition(condition[, invert])Do a condition-based selection on the DataFrame or GeoDataFrame: return the rows in the data where the 'condition' evaluates to True, see examples below.
select_by_elevation([top_min, top_max, ...])Select data based on the elevation of the top and/or end of the survey.
select_by_length([min_length, max_length])Select data based on the length of the survey, which is determined by the difference between the surface and the end of the survey.
select_by_values(column, values[, how, ...])Select data based on the presence of values in a given column.
select_with_lines(lines, max_distance[, invert])Select all data that lie within a maximum distance from given line geometries.
select_with_points(points, max_distance[, ...])Select all data that lie within a maximum distance from given point geometries.
select_within_bbox(xmin, ymin, xmax, ymax[, ...])Select data within a specified bounding box (xmin, ymin, xmax, ymax).
select_within_polygons(polygons[, buffer, ...])Select all data that lie within given polygon geometries.
slice_by_values(column, values[, invert, ...])Slice rows from data based on matching condition.
slice_depth_interval([upper_boundary, ...])Slice data based on given upper and lower boundaries.
spatial_join(geometries, label_id[, ...])Join information from another GeoDataFrame by a spatial relationship (e.g. overlap) between the geometries in the original GeoDataFrame with the geometries in the other GeoDataFrame.
Standardize column names to a consistent format used in GeoST.
to_collection([crs, vertical_datum, ...])Create a
geost.base.Collectionfrom the current GeoDataFrame or DataFrame.to_crs(crs)Change the coordinate reference system (CRS) to a given target CRS.
to_header([include_columns, ...])Create a header GeoDataFrame from the DataFrame to be used as a header table for the creation of a
Collectionobject.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[, crs])Write data to geopackage file that can be directly loaded in the Qgis2threejs plugin.
to_vertical_datum(vertical_datum)Change the vertical datum of the object's surface levels.
transform_coordinates(original_crs, target_crs)Transform the coordinates of GeoDataFrame or DataFrame to a given coordinate reference system (CRS).
validate([return_result])Validate the DataFrame by checking for the presence of crucial information, data types and consistency of the data.
Attributes
Get a boolean mask indicating the locations of new survey IDs in the data.
Returns True if the object contains information about depth, such as 'top' and 'bottom' or 'depth' columns, False otherwise.
Returns True if the object is a GeoDataFrame with a valid geometry column, False otherwise.
has_surface_columnReturns True if the object contains a surface column, False otherwise.
Returns True if the object contains x and y columns, False otherwise.
Returns True if the object contains layered data, i.e. both 'top' and 'bottom' columns, False otherwise.
Get a boolean mask indicating the locations of the last row in each survey.
positional_columns