ClimoAccessor.add_scalar_coords

ClimoAccessor.add_scalar_coords(verbose=False)[source]

Add dummy scalar coordinates for missing longitude, latitude, and vertical dimensions and update the cell_methods attribute(s) to indicate the missing coordinates were reduced by averaging. For motivation, see the final paragraph of CF manual section 7.3.2:

A dimension of size one may be the result of “collapsing” an axis by some statistical operation, for instance by calculating a variance from time series data. We strongly recommend that dimensions of size one be retained (or scalar coordinate variables be defined) to enable documentation of the method (through the cell_methods attribute) and its domain (through the bounds attribute).

In other words, while cell_methods are typically used to indicate how each cell in a 1D coordinate vector was constructed from a notional “original” sampling interval, they can also be used to indicate how a single scalar coordinate was reduced from a 1D coordinate vector.

Parameters

verbose (bool, optional) – If True, print statements are issued.