Python package for working with ESM4 perfect predictability experiments. This is predominantly a light wrapper around climpred, with some additional functionality to work efficiently with the PP/AN file structure.
Most of the functionality relies only on xarray, so will work in any environment with a reasonably up-to-date version of this. You will also need to have some back-end packages installed, including netcdf
and zarr
, as well as cftime
for handling calendars. To use the climpred functionality, you need to have this installed. Depending on your environment set-up, you may also need to install jupyterlab
or ipykernel
.
Additionally, esm4ppe
depends on the gfdl_utils
package, which is a basic package for navigating the filestructure on PP/AN. This package can be found here. Clone that repository to your local machine, and install it in your environment by issuing pip install -e .
from within the repository.
- Clone this repository
- In the
esm4ppe
subfolder, edit theversion.py
file to point towards directories that you have write permissions for. I recommend creating a directory on the/work
filesystem on PP/AN. This is the location whereesm4ppe
can save raw and processed data, as well as check to see if those data are already saved. See the settings in the originalversion.py
for an idea of this file structure. Note that you will have to make these directories locally (esm4ppe
will not do that for you). - In the main
esm4ppe
repository folder (and while theclimpred_clean
environment is activated) issuepip install -e .
. - In a jupyter notebook, you should now be able to import the
esm4ppe
module.