PlasmaCalcs.tools.xarray_tools.xarray_agg_stats.xarray_min
- PlasmaCalcs.tools.xarray_tools.xarray_agg_stats.xarray_min(array, dim=None, *, keep=None, promote_dims_if_needed=True, missing_dims='raise', **kw)
- Like xarray min but first promotes dims if needed, and accepts ‘keep’ option.
- dim: None, str, or iterable of strs
- apply operation along these dimensions
- keep: None, str, or iterable of strs
- apply operation along all except for these dimensions.(can provide keep or dim, but not both.)
- promote_dims_if_needed: bool
- whether to promote non-dimension coords to dimensions.if False, raise DimensionKeyError if any relevant coord is not already a dimension.
- missing_dims: str in (‘ignore’, ‘warn’, ‘raise’)
- what to do if any coord is not found:‘ignore’ –> do nothing.‘warn’ –> raise a warning.‘raise’ –> raise DimensionKeyError.if not ‘raise’, any missing dims will be skipped.
additional kwargs are passed to array.min.