PlasmaCalcs.tools.xarray_tools.xarray_agg_stats.xarray_rms
- PlasmaCalcs.tools.xarray_tools.xarray_agg_stats.xarray_rms(array, dim=None, *, keep=None, promote_dims_if_needed=True, missing_dims='raise', **kw)
- (array**2).mean(dim, **kw)**0.5
- 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.