cedadev / CFA-Python

Climate Forecast Aggregation conventions reference implementation
Other
2 stars 1 forks source link

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
  2. Activate the virtual environment:

    source CFA-python-venv/bin/activate
  3. Clone the CFA-Python repository:

    git clone https://github.com/cedadev/CFA-Python.git
  4. Go into the clone and install

    cd CFA-Python
    pip install ./
  5. Run the example

    python tests/examples/example1.py