Skip to content
Ángel G. Muñoz edited this page Feb 11, 2020 · 16 revisions

Welcome to the PyCPT wiki!

What's PyCPT?

PyCPT is a Python library that provides interface and extra functionalities to IRI's Climate Predictability Tool (CPT), with a special focus on mass-production of seasonal and sub-seasonal forecast skill assessment maps and probabilistic flexible forecasts.

Installation

The user will need to install Anaconda (Python3), the Climate Predictability Tool and the Python extension of CPT (PyCPT). Detailed instructions are available in this document.

For Windows users, we presently recommend to install a Virtual Machine with all needed packages. Instructions and necessary resources can be found here. Read the PyCPTUbuntuREADME.txt file located in that link for details.

[ONLY needed for the s2s version] Create the file .IRIDLAUTH in the main PyCPT folder. It must contain only one line with the Data Library S2S key (104 characters) obtained via this link Please do not share your key

PyCPT structure

PyCPT is broadly divided in four steps.

Most of the configuration of your particular case happens in the namelist section, found at the beginning of the PyCPT Jupyter notebook. This section enables the user to select predictor and predictand datasets, calibration methods and spatial and temporal domains.

The download and CPT execution section deals with preparing all the needed input datasets and running CPT to produce skill assessment and forecast files, conducting the calibration process selected by the user.

The skill assessment section visualizes predictive skill metrics as maps or text.

And the forecast section deals with the ensemble generation and production of forecast maps and other figures, with a especial focus on flexible formats (the use of the entire forecast probability density function).

Executing PyCPT

Several examples are provided via the Jupyter notebooks available in the Code section.

Clone this wiki locally