Reference implementation of CFA (Climate Forecast Aggregation) Conventions in Python 3 (3.9+).
There is now a setup.py
which will compile and install the required CFA-C
library. This superceeds any previous installation instructions. The user is
no longer required to compile the CFA-C library themselves.
-
Create a virtual environment (can name it anything)
python3 -m venv CFA-python-venv
-
Activate the virtual environment:
source CFA-python-venv/bin/activate
-
Install the netCDF4-python library
pip install netCDF4
-
Clone the
CFA-Python
repository:git clone https://github.com/cedadev/CFA-Python.git
-
Go into the clone and install
cd CFA-Python pip install ./
-
Run the example in "save" mode to create a file
python tests/examples/example1a.py S
-
Run the example in "load" mode to load and view the file
python tests/examples/example1a.py L
-
The file is created at:
examples/test/example1a.nc