xoa.cf.CFVarSpecs

class xoa.cf.CFVarSpecs(parent)[source]

CF specification for data_vars

__init__(parent)

Methods

format_dataarray(da[, cf_name, rename, ...])

Format a DataArray's name and attributes

get(obj, cf_name)

Call to search() with an explicit name and ignoring errors

get_allowed_names(cf_name)

Get the list of allowed names for a given cf_name

get_attrs(cf_name[, select, exclude, ...])

Get the default attributes from cf specs

get_loc_arg(da[, cf_name, locations])

Get the loc argument from a name or data array with name

get_loc_mapping(obj[, cf_names])

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[, cf_name, loc])

Check if da attributes match given or any specs

match_from_name(name[, cf_name, loc])

Get the generic CF name of an object knowing only its name

rename_dataarray(da[, name, specialize, ...])

Rename a DataArray

search(obj[, cf_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

attrs_exclude

attrs_first

category

coords

data_vars

dims

Dict of dim names per type

names

sglocator

SGLocator instance