ClimoAccessor.add_cell_measures

ClimoAccessor.add_cell_measures(measures=None, *, dataset=None, override=False, verbose=False, **kwargs)[source]

Add cell measures to the coords and update the cell_measures attribute(s).

Parameters
  • measures (dict-like, optional) – Dictionary of cell measures. If none are provided, the default width, depth, height, and duration measures 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.