An open API service indexing awesome lists of open source software.

https://github.com/cedadev/cfa-python

Climate Forecast Aggregation conventions reference implementation
https://github.com/cedadev/cfa-python

Last synced: about 1 year ago
JSON representation

Climate Forecast Aggregation conventions reference implementation

Awesome Lists containing this project

README

          

CFA Classes
===========

Reference implementation of CFA (Climate Forecast Aggregation) Conventions in Python 3 (3.9+).

Installation
------------

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.

1. Create a virtual environment (can name it anything)

python3 -m venv CFA-python-venv

1. Activate the virtual environment:

source CFA-python-venv/bin/activate

1. Install the netCDF4-python library

pip install netCDF4

1. Clone the `CFA-Python` repository:

git clone https://github.com/cedadev/CFA-Python.git

1. Go into the clone and install

cd CFA-Python
pip install ./

1. Run the example in "save" mode to create a file

python tests/examples/example1a.py S

1. Run the example in "load" mode to load and view the file

python tests/examples/example1a.py L

1. The file is created at:

examples/test/example1a.nc