geost.bro.GeoTop.select_index#
- GeoTop.select_index(**xr_kwargs)#
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