PyStemmusScope
A python package for running the STEMMUS-SCOPE model
Tool for downloading Land Surface Model input data
Tool for downloading Land Surface Model (LSM) input data.
Named after Zam; the Avestan language term for the Zoroastrian concept of "earth".
zampy
is designed to retrieve data for LSM model input. It can help you prepare the data within the following steps:
(Note: items in italic will not be worked on for now/low priority, but we want to allow space for these in the future.)
To install the latest release of zampy
, do:
python3 -m pip install zampy
To install the in-development version from the GitHub repository, do:
python3 -m pip install git+https://github.com/EcoExtreML/zampy.git
Zampy
needs to be configured with a simple configuration file.
You need to create this file under your user home directory:
~/.config/zampy/zampy_config.yml
The configuration file should contain the working_directory
, for instance:
working_directory: /path_to_a_working_directory/ #for example: /home/bart/Zampy
If you need access to data on CDS or ADS server, you should add your CDS or ADS credentials to zampy_config.yml
:
cdsapi:
url: # for example https://cds.climate.copernicus.eu/api/v2
key: # for example 12345:xhashd-232jcsha-dsaj429-cdjajd29319
adsapi:
url: # for example https://ads.atmosphere.copernicus.eu/api/v2
key: # for example 12345:xhashd-232jcsha-dsaj429-cdjajd29319
About how to create CDS or ADS credentials, check the section below.
zampy
We recommend our users to use zampy
with recipes.
A "recipe" is a file with yml extension, it defines:
A sample recipe can be found in the documentation.
When you have your reciped created and saved on your disk, you can execute your recipe by running the following code in your shell:
zampy /path_to_recipe/sample_recipe.yml
We also provide python API for you to intereact with zampy
. You can find the example notebooks for each supported dataset here.
To download the following datasets, users need access to CDS/ADS via cdsapi
/adsapi
:
To generate these API keys, you need to be a registered user on CDS via the registration page, or on ADS via the registration page.
Before submitting any request with zampy
, please put your cdsapi
/adsapi
credentials in zampy_config.yml
. Here is a short instruction about how to find your CDS/ADS API key. You can skip the steps related to .cdsapirc
and simply add the key to zampy_config.yml
.
When downloading a dataset for the first time, it is necessary to agree to the Terms of Use of every datasets that you intend to download. This can only be done via the CDS/ADS website. When you try to download these datasets, you will be prompted to go to the terms of use and accept them.
This package was developed by the Netherlands eScience Center. Development was supported by the Netherlands eScience Center under grant number NLESC.ASDI.2020.026.
Accelerating Process Understanding for Ecosystem Functioning under Extreme Climates with Physics-Aware Machine Learning
A python package for running the STEMMUS-SCOPE model
Integrated code of SCOPE and STEMMUS