xoa.accessors.MetaDatasetAccessor#
- class xoa.accessors.MetaDatasetAccessor(obj, meta_specs=None)[source]#
Meta accessor registered on
xarray.Dataset- __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 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
use meta_specs instead
Sub-accessor for coords only
Sub-accessor for data_vars only
The MetaSpecs instance