xoa.accessors.XoaDataArrayAccessor
- class xoa.accessors.XoaDataArrayAccessor(obj, cfspecs=None)[source]
- __init__(obj, cfspecs=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
(cf_name[, loc, single, errors])Search for a data array or coordinate knowing its generic CF name
Get the internal
CFSpecs
instance used by this accessorget_coord
(cf_name[, loc, single, errors])Search for a coordinate knowing its generic CF name
get_depth
([errors])Get the depth as computed or recognized by the
CFSpecs()
get_dim
(cf_arg[, loc])Get a dimension name knowing its type or generic CF name
infer_coords
(**kwargs)Infer coordinates and set them as coordinates
reloc
(**locs)Convert given staggered grid locations to other locations
set_cf_specs
(cfspecs)Set the internal
CFSpecs
used by this accessorto_loc
(**locs)Set the staggered grid location for specified names
Attributes
Get the generic attributes that matches this array
The
CFDataArrayAccessor
subaccessorGet the generic name that matches this array
The CFSpecs instance
Sub-accessor for coords only
Sub-accessor for data_vars only
F (forecast) dimension name
Get the generic name that matches this array
T (time) dimension name
X dimension
Y dimension name
Z dimension name