xoa.accessors.SigmaAccessor

class xoa.accessors.SigmaAccessor(ds, cfspecs=None)[source]

Dataset accessor to compute depths from sigma-like coordinates

This follows the CF cnventions.

Example

>>> ds = xr.open_dataset('croco.nc')
>>> ds = ds.decode_sigma()
__init__(ds, cfspecs=None)[source]

Methods

decode([rename, errors])

Compute depth from sigma coordinates

get_cf_specs()

Get the internal CFSpecs instance used by this accessor

get_sigma_terms([loc, rename])

Call get_sigma_terms() on the dataset

set_cf_specs(cfspecs)

Set the internal CFSpecs used by this accessor

Attributes

cfspecs

The CFSpecs instance