Skip to content

Climate Forecast Aggregation conventions reference implementation

License

Notifications You must be signed in to change notification settings

cedadev/CFA-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Install the netCDF4-python library

     pip install netCDF4
    
  4. Clone the CFA-Python repository:

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

     cd CFA-Python
     pip install ./
    
  6. Run the example in "save" mode to create a file

     python tests/examples/example1a.py S
    
  7. Run the example in "load" mode to load and view the file

     python tests/examples/example1a.py L
    
  8. The file is created at:

     examples/test/example1a.nc
    

About

Climate Forecast Aggregation conventions reference implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages