ModelDataArray#
This is the GeoST extension for xarray.DataArray. Available after importing geost. For example:
import numpy as np
import xarray as xr
import geost
# Create example model data array with 3D data
da = xr.DataArray(
np.random.rand(3, 3, 4),
dims=("y", "x", "z"),
coords={"y": [2, 1, 0], "x": [0, 1, 2], "z": [0, 1, 2, 3]},
)
da.gst
# Output:
# <geost.models.model_array.ModelDataArray at 0x7f8c4e4c0d30>
Analysis#
|
Calculate the thickness where a voxelmodel or layermodel meets a specified condition. |
|
Derive the top and bottom depths at each x,y-location of a specified condition from a voxelmodel or layermodel. |
|
Determine the "most common" value and corresponding thickness in a voxelmodel or a layermodel. |
|
Get the value counts of unique values in a DataArray. |
Get the unique values in a DataArray without NaNs. |
Coordinate Reference System#
|
Write the coordinate reference system (CRS) to the model. |
Export#
Create a |
|
|
Write data to geopackage file containing a layer "locations" with point geometries and a layer "3dlines" with 3D line geometries. |
|
Convert the model to a PyVista grid. |
General#
Determine the bounding box of the model. |
|
|
Determine the resolution of the model. |
Determine the vertical bounds (depth min, depth max) of the model. |
Selection#
|
Slice a specified depth interval from a voxelmodel or layermodel between upper and lower bounds. |
|
Slice the model in the x and y dimensions. |
Spatial#
|
Mask 'x','y'-locations that overlap with geometries (points, lines, polygons). |
|
Select model data at specified point locations. |
|
Select model data at specified distances along given line geometries. |
|
Select data within a specified bounding box (xmin, ymin, xmax, ymax). |
Attributes#
xarray.DataArray with the depths of the bottom of each layer in a layermodel. |
|
The Coordinate Reference System (CRS) represented as a pyproj.CRS object. |
|
The type of the model as a ModelType enum member. |
|
The number of dimensions in the Dataset/DataArray |
|
The shape of the model as a tuple of integers with the size of each dimension. |
|
xarray.DataArray with the surface level elevation of the model. |
|
xarray.DataArray with the depths of the top of each layer in a layermodel. |
|
The x coordinates of the model as an xarray.DataArray. |
|
The name of the x dimension in the Dataset/DataArray |
|
The y coordinates of the model as an xarray.DataArray. |
|
The name of the y dimension in the Dataset/DataArray |
|
The coordinates of the model's vertical dimension as an xarray.DataArray. |
|
The name of the z dimension in the Dataset/DataArray |