geost.models.VoxelModel#
- class geost.models.VoxelModel(ds: Dataset)[source]#
-
Methods
__init__(ds)from_netcdf(nc_path[, data_vars, bbox, lazy])Read data from a NetCDF file of a voxelmodel data into a VoxelModel instance.
from_opendap(url[, data_vars, bbox, lazy])Download an area of a voxelmodel directly from an OPeNDAP data server.
get_thickness(condition[, depth_range])Generate a thickness array of voxels in the VoxelModel that meet one or more conditions.
isel(**xr_kwargs)Use Xarray selection functionality to select indices along specified dimensions.
most_common(variable)Determine the "most common" value and corresponding thickness in a variable of a VoxelModel.
sel(**xr_kwargs)Use Xarray selection functionality to select indices along specified dimensions.
select_with_points(points)Select voxel columns at the locations of point geometries.
slice_depth_interval([upper, lower, how, drop])Slice a specified depth interval from the VoxelModel between upper and lower bounds.
to_pyvista_grid([data_vars, structured])Convert the VoxelModel to a PyVista grid.
value_counts(variable[, dim, normalize])Return a DataArray containing the value counts of unique values in a VoxelModel variable.
Attributes
Return a tuple (dy, dx, dz) of the VoxelModel resolution.