sdf_xarray.plotting.compute_global_limits

sdf_xarray.plotting.compute_global_limits#

sdf_xarray.plotting.compute_global_limits(data, min_percentile=0, max_percentile=100)[source]#

Remove all NaN values from the target data to calculate the global minimum and maximum of the data. User defined percentiles can remove extreme outliers.

Parameters:
  • data (DataArray) – DataArray containing the target data

  • min_percentile (float) – Minimum percentile of the data

  • max_percentile (float) – Maximum percentile of the data

Return type:

tuple[float, float]