geost.models.VoxelModel.select_index#

VoxelModel.select_index(**xr_kwargs)[source]#

Use Xarray selection functionality to select indices along specified dimensions. This uses the “.isel” method of an Xarray Dataset.

Parameters:

**xr_kwargs – xr.Dataset.isel keyword arguments. See relevant Xarray documentation.

Examples

Select a specified coordinates or slice coordinates from the VoxelModel instance: >>> selected = voxelmodel.select(x=[1, 2, 3]) # Using keyword arguments >>> selected = voxelmodel.select({“x”: [1, 2, 3]}) # Using a dictionary >>> selected = voxelmodel.select(x=slice(1, 4)) # Using a slice