plot.get_region¶
get_region(grid)
Determine region extent using a grid object.
Arguments:¶
grid (xarray.DataArray): grid object to determine extent of
Returns:¶
(list): list defining region boundaries.
Example¶
import plot
# load in the synthetic test model as a slab_model instance
model = plot.slab_model("../output/exp_slab2_04-18","surface") # synthetic test slab made with the 04-18 database
# use the depth grid and save the outputted region as a variable
region = plot.get_region(model.dep_grid)