Installation¶
Version 1.8.2 for version 1.8 of the CF conventions.
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.
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.8.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 install
To install the cfdm package locally to the user in the default location:
$ python setup.py install --user
To 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.
Dependencies¶
The cfdm package requires:
Python, version 2.7 or 3 or newer,
numpy, version 1.15 or newer,
netCDF4, version 1.5.3 or newer,
cftime, version 1.1.1 or newer (note that this library is installed with netCDF4, but possibly not a new enough version), and
future, version 0.16.0 or newer.
Code repository¶
The complete source code is available at https://github.com/NCAS-CMS/cfdm