xoa.accessors.MetaDataArrayAccessor#
- class xoa.accessors.MetaDataArrayAccessor(obj, meta_specs=None)[source]#
Meta accessor registered on
xarray.DataArray- __init__(obj, meta_specs=None)#
Methods
auto_format(**kwargs)Rename variables and coordinates and fill their attributes
decode(**kwargs)Rename variables and coordinates to generic names
encode(**kwargs)Rename variables and coordinates to specialized names
fill_attrs(**kwargs)Fill missing attributes
get(meta_name[, loc, single, errors])Search for a data array or coordinate knowing its generic CF name
Deprecated: use get_meta_specs instead
get_coord(meta_name[, loc, single, errors])Search for a coordinate knowing its generic CF name
get_depth([errors])Get the depth, positive down, as computed or recognized by the
MetaSpecs()get_dim(cf_arg[, loc])Get a dimension name knowing its type or generic CF name
Get the internal
MetaSpecsinstance used by this accessorget_z([errors])Get the z, positive up, as computed or recognized by the
MetaSpecs()infer_coords(**kwargs)Infer coordinates and set them as coordinates
reloc(**locs)Convert given staggered grid locations to other locations
set_cf_specs(cfspecs)Deprecated: use set_meta_specs instead
set_meta_specs(meta_specs)Set the internal
MetaSpecsused by this accessorto_loc(**locs)Set the staggered grid location for specified names
Attributes
Get the generic attributes that matches this array
Get the generic name that matches this array
use meta_specs instead
Sub-accessor for coords only
Sub-accessor for data_vars only
F (forecast) dimension name
Get the generic name that matches this array
The MetaSpecs instance
Get the generic name that matches this array
T (time) dimension name
X dimension
Y dimension name
Z dimension name