pysteps.utils.dimension.clip_domain#
- pysteps.utils.dimension.clip_domain(dataset: Dataset, extent=None)#
Clip the field domain by geographical coordinates.
- Parameters:
dataset (xarray.Dataset) – Dataset containing the input fields as described in the documentation of
pysteps.io.importers.extent (scalars (left, right, bottom, top), optional) – The extent of the bounding box in data coordinates to be used to clip the data. Note that the direction of the vertical axis and thus the default values for top and bottom depend on origin. We follow the same convention as in the imshow method of matplotlib: https://matplotlib.org/tutorials/intermediate/imshow_extent.html
- Returns:
dataset – The clipped dataset
- Return type:
xarray.Dataset