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
- Host: GitHub
- URL: https://github.com/cedadev/cfa-python
- Owner: cedadev
- License: other
- Created: 2021-07-19T15:50:14.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T17:36:43.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T00:24:12.273Z (about 1 year ago)
- Language: Python
- Size: 195 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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