Skip to content

destination-earth-digital-twins/Deode-Plugin-Spaveripy

Repository files navigation

Deode-Plugin-Spaveripy

Plugin to run the spatial verification tool from Deode-Workflow.

Installation

In order to run spatial verification exercises you need to have the deode scripting system (DW) installed. Please read carefully and follow the steps in the documentation.

Deode spatial verif

Clone the spatial verification tool into the working directory where you want to host the tool (if the machine where you are going to run the tool is ATOS, we highly recommend that the repository is cloned to $HPCPERM to avoid problems reading netCDF):

git clone https://github.com/DEODE-NWP/deode_spatial_verif.git

Additionally, the HPC module python3/3.11.8-01 must be loaded and the Python module pysteps must be installed on your user before running a verification exercise:

module load python3/3.11.8-01
pip install --user pysteps==1.9.0

spaveripy plugin

Clone this repository into the desired path:

git clone https://github.com/DEODE-NWP/Deode-Plugin-Spaveripy.git

Usage

Before running the project, make sure to create your own configuration files:

cp verif_configuration.template verif_configuration
cp verif_plugin.template.toml verif_plugin.toml

Edit the verif_plugin.toml and replace the values spaveripy and VERIF_HOME with your absolute paths to the plugin and the spatial verification tool respectively. Also edit the values of: VERIF_OBS (possible values: IMERG_pcp, SEVIRI_bt, OPERA_rain); and ECFS_USER (user that stores the experiment outputs). Include the config/modifications/include files into the verif_configuration. Note that the toml file is contained within this file. From the root level of the DW's install directory, activate the virtual environment with poetry shell.Then, run:

deode case ?<path/to/plugin>/verif_configuration -o verif.toml --start-suite

Full verification exercise

A shell-script has been developed to automate the different steps of a complete verification exercise with the tool. In order to use it, it is necessary to create a configuration file inside the config directory:

cp config/user_settings.template.env config/user_settings.env

Edit the new file generated with your own paths, where DEST_DIR is the path where you want to save the configuration files with which the DEODE experiments have been run; PLUGIN_DIR is the root directory where this repository is located; DW_DIR is the root directory where the DEODE scripting system is located; TOOL_DIR is the directory where the copy of the spatial verification tool is located; and LAUNCHS_DIR is the directory where you want to save the shell-scripts that are automatically generated to run complete verification exercises for each case study. Note: all these paths must have been previously created.

Once these paths are set, make sure that the bin/run_full_verif.sh file has execution permissions for your user:

chmod u+x bin/run_full_verif.sh

Finally, from the directory that contains it, run the following command:

./run_full_verif.sh -u <ecfs_user> -c <case> -o <obs>

where <ecfs_user> is the ATOS user that stores the experiment outputs, <case> is the name of the experiment case and <obs> is the database to use for verification (IMERG_pcp, SEVIRI_bt, OPERA_rain), e.g.:

./run_full_verif.sh -u aut6432 -c CY46h1_HARMONIE_AROME_nwp_ESP_20241029_conve_2_20241029 -o IMERG_pcp"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published