xoa.cf.CFVarSpecs¶
-
class
xoa.cf.CFVarSpecs(parent)[source]¶ CF specification for data_vars
-
__init__(parent)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
format_dataarray(da[, name, loc, rename, …])Format a DataArray’s name and attributes
get(dsa, name)Call to
search()with an explicit name and ignoring errorsget_attrs(name[, select, exclude, errors, …])Get the default attributes from cf specs
get_name(name[, specialize, loc])Get the name of the matching CF specs
get_specs(name[, errors])Get the specs of a cf item
items()keys()match(da[, name, loc])Check if da attributes match given or any specs
rename_dataarray(da[, name, specialize, …])Rename a DataArray
search(dsa[, name, loc, get, single, errors])Search for a data_var or coord that maches given or any specs
set_specs(item, **specs)Update or create specs for an item
set_specs_from_cfg(cfg)Update or create specs for several item with a config specs
Attributes
Dims per dimension types
SGLocatorinstance-