The **cfdm** Python package is a complete reference implementation
of the `CF data model
<https://www.geosci-model-dev.net/10/4619/2017>`_ for CF-1.11, that
identifies the fundamental elements of the `CF conventions
<http://cfconventions.org/>`_ and shows how they relate to each other,
independently of the `netCDF
<https://www.unidata.ucar.edu/software/netcdf/>`_ encoding.
The central element defined by the CF data model is the **field
construct**, which corresponds to a CF-netCDF data variable with all
of its metadata.
A simple example of reading a field construct from a file and
inspecting it:
>>> import cfdm
>>> f = cfdm.read('file.nc')
>>> f
[<Field: air_temperature(time(12), latitude(64), longitude(128)) K>]
>>> print(f[0])
Field: air_temperature (ncvar%tas)
----------------------------------
Data : air_temperature(time(12), latitude(64), longitude(128)) K
Cell methods : time(12): mean (interval: 1.0 month)
Dimension coords: time(12) = [0450-11-16 00:00:00, ..., 0451-10-16 12:00:00] noleap
: latitude(64) = [-87.8638, ..., 87.8638] degrees_north
: longitude(128) = [0.0, ..., 357.1875] degrees_east
: height(1) = [2.0] m
The **cfdm** package can
* read field and domain constructs from netCDF and CDL datasets,
* create new field and domain constructs in memory,
* write and append field and domain constructs to netCDF datasets on disk,
* read, write, and manipulate UGRID mesh topologies,
* read, write, and create coordinates defined by geometry cells,
* read and write netCDF4 string data-type variables,
* read, write, and create netCDF and CDL datasets containing hierarchical groups,
* inspect field and domain constructs,
* test whether two constructs are the same,
* modify field and domain construct metadata and data,
* create subspaces of field and domain constructs,
* incorporate, and create, metadata stored in external files, and
* 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.
Documentation
=============
https://ncas-cms.github.io/cfdm
Tutorial
========
https://ncas-cms.github.io/cfdm/tutorial
Installation
============
https://ncas-cms.github.io/cfdm/installation
Command line utility
====================
During installation the `cfdump` command line tool is also installed,
which generates text descriptions of the field constructs contained
in a netCDF dataset.
Source code
===========
This project is hosted in a `GitHub repository
<https://github.com/NCAS-CMS/cfdm>`_ where you can access the most
up-to-date source.
Raw data
{
"_id": null,
"home_page": "https://ncas-cms.github.io/cfdm",
"name": "cfdm",
"maintainer": "David Hassell, Sadie Bartholomew",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "cf,netcdf,data,science,oceanography,meteorology,climate",
"author": "David Hassell, Sadie Bartholomew",
"author_email": "david.hassell@ncas.ac.uk",
"download_url": "https://files.pythonhosted.org/packages/29/04/eae72a8636c82725b3ef580a50cf9e5a9ca918adf2d497c15c75329ba544/cfdm-1.11.0.0.tar.gz",
"platform": "Linux",
"description": "The **cfdm** Python package is a complete reference implementation\nof the `CF data model\n<https://www.geosci-model-dev.net/10/4619/2017>`_ for CF-1.11, that\nidentifies the fundamental elements of the `CF conventions\n<http://cfconventions.org/>`_ and shows how they relate to each other,\nindependently of the `netCDF\n<https://www.unidata.ucar.edu/software/netcdf/>`_ encoding.\n\nThe central element defined by the CF data model is the **field\nconstruct**, which corresponds to a CF-netCDF data variable with all\nof its metadata.\n\nA simple example of reading a field construct from a file and\ninspecting it:\n\n >>> import cfdm\n >>> f = cfdm.read('file.nc')\n >>> f\n [<Field: air_temperature(time(12), latitude(64), longitude(128)) K>]\n >>> print(f[0])\n Field: air_temperature (ncvar%tas)\n ----------------------------------\n Data : air_temperature(time(12), latitude(64), longitude(128)) K\n Cell methods : time(12): mean (interval: 1.0 month)\n Dimension coords: time(12) = [0450-11-16 00:00:00, ..., 0451-10-16 12:00:00] noleap\n : latitude(64) = [-87.8638, ..., 87.8638] degrees_north\n : longitude(128) = [0.0, ..., 357.1875] degrees_east\n : height(1) = [2.0] m\n\nThe **cfdm** package can\n\n* read field and domain constructs from netCDF and CDL datasets,\n* create new field and domain constructs in memory,\n* write and append field and domain constructs to netCDF datasets on disk,\n* read, write, and manipulate UGRID mesh topologies,\n* read, write, and create coordinates defined by geometry cells,\n* read and write netCDF4 string data-type variables,\n* read, write, and create netCDF and CDL datasets containing hierarchical groups,\n* inspect field and domain constructs,\n* test whether two constructs are the same,\n* modify field and domain construct metadata and data,\n* create subspaces of field and domain constructs,\n* incorporate, and create, metadata stored in external files, and\n* read, write, and create data that have been compressed by convention\n (i.e. ragged or gathered arrays, or coordinate arrays compressed\n by subsampling), whilst presenting a view of the data in its\n uncompressed form.\n\nDocumentation\n=============\n\nhttps://ncas-cms.github.io/cfdm\n\nTutorial\n========\n\nhttps://ncas-cms.github.io/cfdm/tutorial\n\nInstallation\n============\n\nhttps://ncas-cms.github.io/cfdm/installation\n\nCommand line utility\n====================\n\nDuring installation the `cfdump` command line tool is also installed,\nwhich generates text descriptions of the field constructs contained\nin a netCDF dataset.\n\nSource code\n===========\n\nThis project is hosted in a `GitHub repository\n<https://github.com/NCAS-CMS/cfdm>`_ where you can access the most\nup-to-date source.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python reference implementation of the CF data model",
"version": "1.11.0.0",
"project_urls": {
"Download": "https://pypi.org/project/cfdm/#files",
"Homepage": "https://ncas-cms.github.io/cfdm"
},
"split_keywords": [
"cf",
"netcdf",
"data",
"science",
"oceanography",
"meteorology",
"climate"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2904eae72a8636c82725b3ef580a50cf9e5a9ca918adf2d497c15c75329ba544",
"md5": "a869826d3a72dbc44bc269d90bb6427f",
"sha256": "f303f539a2bae1cd6dfb09e054e8b0ff35edc935feaf90bb04cf276bd07f3690"
},
"downloads": -1,
"filename": "cfdm-1.11.0.0.tar.gz",
"has_sig": false,
"md5_digest": "a869826d3a72dbc44bc269d90bb6427f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 478647,
"upload_time": "2023-12-06T14:45:43",
"upload_time_iso_8601": "2023-12-06T14:45:43.511824Z",
"url": "https://files.pythonhosted.org/packages/29/04/eae72a8636c82725b3ef580a50cf9e5a9ca918adf2d497c15c75329ba544/cfdm-1.11.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-06 14:45:43",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "cfdm"
}