crt1d.variables#
Variable metadata from the variables.yml file.
Module Contents#
Classes#
Attributes#
- class crt1d.variables.Vmd(vmdes)#
Container for variable metadata of multiple variables.
- class crt1d.variables.VmdEntry(name, params, param_defaults)#
Variable metadata for one variable.
- Parameters:
name (
str) – Code variable name associated with the variable. Used as thenameforxarray.DataArrays.params (
dict) – Parameters for this variable.param_defaults (
dict) – Default parameters (to use if params is missing any of the needed).
- da_attrs()#
Return dict of attributes to use when creating an
xarray.DataArrayfor this variable.
- dv_tuple(data)#
Construct an
xarray.Datasetdata_varstuple.