ClimoAccessor.add_cell_measures¶
- ClimoAccessor.add_cell_measures(measures=None, *, dataset=None, override=False, verbose=False, **kwargs)[source]¶
Add cell measures to the
coordsand update thecell_measuresattribute(s).- Parameters
measures (dict-like, optional) – Dictionary of cell measures. If none are provided, the default
width,depth,height, anddurationmeasures are automatically calculated. If this is a DataArray, surface pressure will not be taken into account and isentropic grids will error out.dataset (xarray.Dataset, optional) – The dataset associated with this
xarray.DataArray. Needed when calculating cell measures automatically.override (bool, optional) – Whether to override existing cell measures. Default is
False.verbose (bool, optional) – If
True, print statements are issued.**kwargs – Cell measures passed as keyword args.