xoa.cf.get_cf_specs¶
- xoa.cf.get_cf_specs(name=None, cache='rw')[source]¶
Get the current or a registered CF specifications instance
- Parameters
name (str, "current", "default", None, xarray.Dataset, xarray.DataArray) – “default” means the default xoa specs. “current” is equivalent to None and means the currents specs, which defaults to the xoa defaults! Else registration name for these specs or a data array or dataset that can be used to get the registration name if it set in the
cfspecsattribute or encoding. When set,cacheis ignored. Raises aXoaCFErroris case of invalid name.cache (str, bool, None) – Cache default specs on disk with pickling for fast loading. If
None, it defaults to boolean optioncf.cache. Possible string values:"ignore","rw","read","write". IfTrue, it is set to"rw". IfFalse, it is set to"ignore".
- Returns
CFSpecs – None is return if no specs are found
- Raises
XoaCFError – When
nameis provided as a string and is invalid.