xoa.accessors.CFDatasetAccessor

class xoa.accessors.CFDatasetAccessor(dsa, cfspecs=None)[source]
__init__(dsa, cfspecs=None)

Initialize self. See help(type(self)) for accurate signature.

Methods

auto_format([loc, standardize])

Auto-format attributes with CFSpecs.auto_format()

decode(**kwargs)

Rename variables and coordinates to generic names

encode(**kwargs)

Rename variables and coordinates to specialized names

fill_attrs([loc, standardize])

Fill attributes with CFSpecs.fill_attrs()

get(name[, loc, single, errors])

Search for a CF item with CFSpecs.search()

get_cf_specs()

Get the internal CFSpecs instance used by this accessor

get_coord(name[, loc, single])

Search for a CF coord with CFCoordSpecs.search()

get_depth()

Get the depth

infer_coords(**kwargs)

Infer coordinates and set them as coordinates

set_cf_specs(cfspecs)

Set the internal CFSpecs used by this accessor

Attributes

cfspecs

The CFSpecs instance

coords

Sub-accessor for coords only

data_vars

Sub-accessor for data_vars only

ds