$npx skillfedfor your agent

cf-xarray

A convenience wrapper for using CF attributes on xarray objects

Worth itPyPI Information AnalysisReleased Jun 2026353.4K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — cf_xarray-0.11.3-py3-none-any.whl
v0.11.3 · released 2026-06-12 · Python >=3.11 · 1 runtime deps: xarray

Yes. cf-xarray is actively maintained, has no known vulnerabilities, carries a permissive Apache 2.0 license, and adds minimal install friction (pure Python, single dependency). It is worth installing if you work with CF-compliant xarray datasets and want to write code that is independent of dataset-specific naming schemes. If your datasets do not follow CF conventions or you do not use xarray, it offers no benefit.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires xarray to be installed; your dataset must have CF-compliant attributes (e.g., `standard_name` or `long_name`) set on dimensions or coordinates for the `.cf` accessor to recognize them.
  • Low friction: pure Python wheel with a single runtime dependency on xarray.
  • Repository is active with a recent commit on 2026-08-01 and 180 stars; last release was 2026-06-12, 63 days ago.

License · maintenance · safety

permissive license (permissive) — Apache License 2.0 is permissive; you may use, modify, and distribute the package freely provided you include a copy of the license and note any changes you make.

last release 2026-06-12 (63 days) · last repo commit 2026-08-01 · 180 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 353,374 downloads/mo, #7,303 on PyPI

Verify before relying

pip install cf-xarray

import xarray as xr
import cf_xarray

ds = xr.open_dataset('data.nc')
result = ds.cf.mean('latitude')
  • Which specific CF attributes (standard_name, long_name, etc.) the accessor recognizes and prioritizes
  • Performance overhead of the accessor layer compared to direct xarray operations
  • Scope of CF convention coverage (e.g., does it handle all CF standard names or a subset)
Same gist for agents: .md · .json

What it is and what it does

cf-xarray is a lightweight wrapper that extends xarray with a `.cf` accessor, allowing you to write operations using CF (Climate and Forecast) convention attribute names instead of dataset-specific dimension and coordinate names. Instead of needing to know that a particular file uses 'lat' or 'latitude' or 'y', you can write `.cf.mean('latitude')` and the accessor resolves the actual dimension name from CF metadata attributes on your dataset.

The package is designed for scientists and data engineers working with climate, weather, or other geospatial datasets that follow CF conventions. It reduces the friction of writing code that must work across multiple datasets with different naming schemes, and it depends only on xarray, making it a minimal addition to existing workflows. The package is in production-stable status, actively maintained, and supports Python 3.11, 3.12, and 3.13.

Use it for

  • Write climate analysis code that works across multiple datasets without hardcoding dimension names like 'lat', 'lon', or 'time'.
  • Automate data processing pipelines where input files may use different naming conventions but follow CF standards.
  • Build reusable analysis functions that accept CF-compliant xarray datasets and operate on standard semantic dimensions.
  • Simplify exploratory data analysis on unfamiliar CF-compliant netCDF or HDF5 files by using semantic names.
  • Integrate with Pangeo or other Earth science data ecosystems where CF conventions are standard.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

cf-xarray is actively maintained, has no known vulnerabilities, carries a permissive Apache 2.0 license, and adds minimal install friction (pure Python, single dependency). It is worth installing if you work with CF-compliant xarray datasets and want to write code that is independent of dataset-specific naming schemes. If your datasets do not follow CF conventions or you do not use xarray, it offers no benefit.

Install

cf-xarray on PyPI

Before you install

Low friction: pure Python wheel with a single runtime dependency on xarray. Repository is active with a recent commit on 2026-08-01 and 180 stars; last release was 2026-06-12, 63 days ago.

Requires xarray to be installed; your dataset must have CF-compliant attributes (e.g., `standard_name` or `long_name`) set on dimensions or coordinates for the `.cf` accessor to recognize them.

License in practice

Apache License 2.0 is permissive; you may use, modify, and distribute the package freely provided you include a copy of the license and note any changes you make.

Quickstart

pip install cf-xarray

import xarray as xr
import cf_xarray

ds = xr.open_dataset('data.nc')
result = ds.cf.mean('latitude')

Verify before relying

  • Which specific CF attributes (standard_name, long_name, etc.) the accessor recognizes and prioritizes
  • Performance overhead of the accessor layer compared to direct xarray operations
  • Scope of CF convention coverage (e.g., does it handle all CF standard names or a subset)

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
xarray
MaintenanceActively maintained 63 days since the last release
Last repo commit
First released
Downloads353,374 / month, #7,303 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Evidence: cf_xarray-0.11.3-py3-none-any.whl

Tags

Capabilities
xarray CF conventions wrapperclimate forecast metadata xarraydimension name abstraction xarrayCF attribute accessordataset-agnostic xarray operationsCF-compliant coordinate accessmetadata-driven xarray selection
Topics
climate-datametadata-drivenxarray-ecosystem
PyPI keywords
xarraymetadataCF conventions

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “xarray CF conventions wrapper”

  • cf-xarraycf-xarray adds a `.cf` accessor to xarray objects that lets you…
  • cfgribcfgrib maps GRIB meteorological data files to the NetCDF Common Data…
  • cf-unitscf-units provides units of measure as defined by the Climate and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Information Analysis packages

regex Worth it
PyPI · Python Modules · released Jul 2026

A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyarrow Worth it
PyPI · Information Analysis · released Aug 2026

pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.

Apache-2.0compiled wheel · 3.10+
432.9Mdownloads / mo
networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
snowflake-snowpark-python Worth it
PyPI · Software Development · released Jul 2026

Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.

Install it if you use Snowflake and want to process data without moving it to your application layer.

Apache-2.0pure Python
100.7Mdownloads / mo

See also cf-units · xarray · cfgrib · xradar · spatial_image · xproj · sphinx-autosummary-accessors · pint-xarray · xarray-dataclass · odc-geo