Skip to main content

A CF-compliant earth science data analysis library

Project description

CF Python

The Python cf package is an Earth science data analysis library that is built on a complete implementation of the CF data model.

Documentation

http://ncas-cms.github.io/cf-python

Dask

From version 3.14.0, the cf package uses Dask for all of its data manipulations.

Recipes

https://ncas-cms.github.io/cf-python/recipes

Tutorial

https://ncas-cms.github.io/cf-python/tutorial

Installation

http://ncas-cms.github.io/cf-python/installation

Command line utilities

During installation the cfa command line utility is also installed, which

  • generates text descriptions of field constructs contained in files, and

  • creates new datasets aggregated from existing files.

Visualization

Powerful, flexible, and very simple to produce visualizations of field constructs are available with the [cfplot](http://ajheaps.github.io/cf-plot) package, that needs to be installed seprately to the cf package.

See the cfplot gallery for the full range range plotting possibilities with example code.

Functionality

The cf package implements the CF data model for its internal data structures and so is able to process any CF-compliant dataset. It is not strict about CF-compliance, however, so that partially conformant datasets may be ingested from existing datasets and written to new datasets. This is so that datasets which are partially conformant may nonetheless be modified in memory.

The cf package can:

  • read field constructs from netCDF, CDL, PP and UM datasets,

  • create new field constructs in memory,

  • write and append field constructs to netCDF datasets on disk,

  • read, write, and create coordinates defined by geometry cells,

  • read netCDF and CDL datasets containing hierarchical groups,

  • inspect field constructs,

  • test whether two field constructs are the same,

  • modify field construct metadata and data,

  • create subspaces of field constructs,

  • write field constructs to netCDF datasets on disk,

  • incorporate, and create, metadata stored in external files,

  • read, write, and create data that have been compressed by convention (i.e. ragged or gathered arrays, or coordinate arrays compressed by subsampling), whilst presenting a view of the data in its uncompressed form,

  • combine field constructs arithmetically,

  • manipulate field construct data by arithmetical and trigonometrical operations,

  • perform statistical collapses on field constructs,

  • perform histogram, percentile and binning operations on field constructs,

  • regrid field constructs with (multi-)linear, nearest neighbour, first- and second-order conservative and higher order patch recovery methods,

  • apply convolution filters to field constructs,

  • create running means from field constructs,

  • apply differential operators to field constructs,

  • create derived quantities (such as relative vorticity).

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf-python-3.15.1.tar.gz (1.4 MB view details)

Uploaded Source

File details

Details for the file cf-python-3.15.1.tar.gz.

File metadata

  • Download URL: cf-python-3.15.1.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for cf-python-3.15.1.tar.gz
Algorithm Hash digest
SHA256 5ed63eabc7d29f4c97c4697493c79c39061a9d8444a81f85ba0318359f77cdd5
MD5 7de25e4e6eab522ff78ba888e4f7d6ff
BLAKE2b-256 d1e87b694313f72ac760ea38cd75d84dcd17554d08a5a1455a78d54969b4ba78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page