polartoolkit.get_combined_min_max#
- get_combined_min_max(values, shapefile=None, robust=False, region=None, hemisphere=None, epsg=None, absolute=False, robust_percentiles=(0.02, 0.98))[source]#
Get a grids max and min values.
- Parameters:
values (tuple[xarray.DataArray | pandas.Series | numpy.ndarray]) β values to get min and max for
shapefile (Union[str or geopandas.GeoDataFrame], optional) β path or loaded shapefile to use for a mask, by default None
robust (bool, optional) β choose whether to return the 2nd and 98th percentile values, instead of the min/max
region (tuple[float, float, float, float], optional) β give a subset region to get min and max values from, in format [xmin, xmax, ymin, ymax], by default None
hemisphere (str, optional,) β if using a shapefile to subset the data, set projection based on βnorthβ or βsouthβ hemispheres, by default None
epsg (str | None, optional) β if using a shapefile to subset the data, set projection from EPSG code string (β3031β), by default None
absolute (bool, optional) β choose whether to return the absolute min and max values, by default False
robust_percentiles (tuple[float, float], optional) β percentiles to use for robust min and max values, by default (0.02, 0.98)
- Returns:
returns the min and max values.
- Return type: