Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xarray-contrib/cf-xarray

an accessor for xarray objects that interprets CF attributes
https://github.com/xarray-contrib/cf-xarray

cf-conventions metadata xarray

Last synced: about 1 month ago
JSON representation

an accessor for xarray objects that interprets CF attributes

Awesome Lists containing this project

README

        

.. image:: https://img.shields.io/static/v1.svg?logo=Jupyter&label=Pangeo+Binder&message=GCE+us-central1&color=blue&style=for-the-badge
:target: https://binder.pangeo.io/v2/gh/xarray-contrib/cf-xarray/main?urlpath=lab
:alt: Binder

.. image:: https://img.shields.io/readthedocs/cf-xarray/latest.svg?style=for-the-badge
:target: https://cf-xarray.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://img.shields.io/github/actions/workflow/status/xarray-contrib/cf-xarray/ci.yaml?branch=main&logo=github&style=for-the-badge
:target: https://github.com/xarray-contrib/cf-xarray/actions
:alt: GitHub Workflow CI Status

.. image:: https://results.pre-commit.ci/badge/github/xarray-contrib/cf-xarray/main.svg
:target: https://results.pre-commit.ci/latest/github/xarray-contrib/cf-xarray/main
:alt: pre-commit.ci status

.. image:: https://codecov.io/gh/xarray-contrib/cf-xarray/branch/main/graph/badge.svg?token=hR3x9559bZ
:target: https://codecov.io/gh/xarray-contrib/cf-xarray
:alt: Code Coverage

.. image:: https://img.shields.io/pypi/v/cf-xarray.svg?style=for-the-badge
:target: https://pypi.org/project/cf-xarray
:alt: Python Package Index

.. image:: https://img.shields.io/conda/vn/conda-forge/cf_xarray.svg?style=for-the-badge
:target: https://anaconda.org/conda-forge/cf_xarray
:alt: Conda Version

.. image:: https://zenodo.org/badge/267381269.svg
:target: https://zenodo.org/badge/latestdoi/267381269

.. image:: https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8B-yellow
:target: https://fair-software.eu

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 `_.

Try out our Earthcube 2021 Annual Meeting notebook `submission `_.