/cf-xarray

a lightweight accessor for xarray objects that interprets CF attributes

Primary LanguagePythonApache License 2.0Apache-2.0

Binder Documentation Status GitHub Workflow CI Status GitHub Workflow Code Style Status Code Coverage Python Package Index Conda Version

cf-xarray

A lightweight convenience wrapper for using CF attributes on xarray objects.

For example you can use .cf.mean("latitude") instead of .mean("lat") if appropriate attributes are set! This allows you to write code that does not require knowledge of specific dimension or coordinate names particular to a dataset.

See more in the introductory notebook here.