Installation¶
Version 1.11.1.0 for version 1.11 of the CF conventions.
Note
The latest version to be released and the newest versions available from the Python package index (PyPI) and conda are confirmed at the top of the README document.
Operating systems¶
cfdm works for Linux, Mac and Windows operating systems.
Python versions¶
cfdm works for Python versions 3.8 or newer.
pip¶
To install cfdm and all of its dependencies run, for example:
$ pip install cfdm
$ pip install cfdm --user
To install cfdm without any of its dependencies then run, for example:
$ pip install cfdm --no-deps
See the documentation for pip install for further options.
conda¶
The cfdm package is in the conda-forge conda channel. To install cfdm with all of its dependencies run
$ conda install -c conda-forge cfdm
Source¶
To install from source:
Download the cfdm package from https://pypi.org/project/cfdm
Unpack the library (replacing
<version>
with the version that you want to install, e.g.1.11.0.0
):$ tar zxvf cfdm-<version>.tar.gz $ cd cfdm-<version>
Install the package:
To install the cfdm package to a central location:
$ python setup.py installTo install the cfdm package locally to the user in the default location:
$ python setup.py install --userTo install the cfdm package in the
<directory>
of your choice:$ python setup.py install --home=<directory>
cfdump utility¶
During installation the cfdump command line utility is also installed, which generates text descriptions of the field constructs contained in a netCDF dataset.
Tests¶
Tests are run from within the cfdm/test
directory:
$ python run_tests.py
Dependencies¶
The cfdm package requires:
Python, version 3.8 or newer.
numpy, version 1.15 or newer.
netCDF4, version 1.5.4 or newer.
cftime, version 1.6.0 or newer.
netcdf_flattener, version 1.2.0 or newer.
packaging, version 20.0 or newer.
scipy, version 1.10.0 or newer.
Code repository¶
The source code is available at https://github.com/NCAS-CMS/cfdm