Skip to content

CLIMAAX/workflow_template

HAZARD

Repository for collaboration on workflows for HAZARD hazard.

Part of the Climate Risk Assessment Handbook.

How to run

See our how to run risk workflows page in the CLIMAAX handbook for more information.

Launch a binder session

Binder sessions are not persistent and may not provide the necessary computing resources to run all workflow steps.

Binder

Local setup with conda

# Clone the workflow repository
git clone https://github.com/CLIMAAX/HAZARD.git
cd HHAZARD

# Create a new environment and activate it
conda env create -f environment.yml

# Start the JupyterLab from within the created environment
conda activate climaax_HAZARD
jupyter lab

How to contribute

See our contributions page in the Handbook.

License

Apache-2.0 OR CC-BY-4.0 (SPDX license identifier).

Acknowledgements

CLIMAAX has received funding from the European Union’s Horizon Europe – the Framework Programme for Research and Innovation (2021-2027) under grant agreement No. 101093864.

Developer information

Things to consider when setting up a new workflow repository. Delete this section of the README after setting up.

Insert name of hazard

Make sure to replace all occurrences of HAZARD (in the README.md, environment.yml, etc.) with the name of your hazard (e.g. hail) after copying this template.

Conda environment

  • Use the package versions as specified in the environment.yml file provided with the template. We aim to keep a consistent enviroment throughout all CLIMAAX workflow repositories to allow for a seamless assessment of multiple hazards in a single environment. Packages are installed from the conda-forge channel.

  • Please remove packages that are not used by your workflows from your new hazard repository's environment.yml file to keep the hazard-specific environment as light as possible, but always keep the ipykernel, jupyterlab-myst, jupyterlab, notebook and pip packages for the convenience of the user.

  • We only explicitly specify packages that are directly imported in the workflows and some optional dependencies of these packages. E.g., dask and netcdf4 should be specified whenever xarray is used to load NetCDF files so xarray.open_mfdataset works, even if the dask and netcdf4 packages are not imported directly in any of the workflow notebooks. In contrast, instead of specifying a version for matplotlib-base explicitly, we only specify a version for matplotlib and let conda resolve the dependency.

  • To add a package to the environment of an existing workflow repository, pick its version from the general environment.yml file in the template repository. If the package doesn't exist in the general environment yet, find a compatible version and open a pull request or issue in the template repository so it can be added to the general environment. A way to select a compatible version is to first create the workflow or general environment without the new package, then install the package(s) without specifying a version and using the version that is automatically installed (conda will pick a compatible version if possible).

Binder link

Binder sessions should be launched via the CLIMAAX/binder-env repository, pulling the workflow repository content in with nbgitpuller. Instructions for creating a link to launch binder in this way are provided in the binder-env repository.

About

Template for CLIMAAX workflow repositories

Resources

License

Apache-2.0, CC-BY-4.0 licenses found

Licenses found

Apache-2.0
LICENSE-Apache-2.0
CC-BY-4.0
LICENSE-CC-BY-4.0

Stars

Watchers

Forks

Packages

 
 
 

Contributors