update_clocks(model=None, clocks=None, master_clock=None)¶
Set or update clock coordinates.
Also copy from the replaced coordinates any attribute that is specific to model output variables.
xsimlab.Modelobject, optional) – Reference model. If None, tries to get model from context.
clocks (dict, optional) – Used to create one or several clock coordinates. Dictionary values are anything that can be easily converted to
xarray.IndexVariableobjects (e.g., a 1-d
Name of the clock coordinate (dimension) to use as master clock. If not set, the name is inferred from
clocks(only if one coordinate is given and if Dataset has no master clock defined yet). A dictionary can also be given with one of several of these keys:
dim: name of the master clock dimension/coordinate
units: units of all clock coordinate labels
calendar: a unique calendar for all (time) clock coordinates
updated – Another Dataset with new or replaced coordinates.
- Return type