Skip to content
Snippets Groups Projects
Commit d874bd49 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Download DWD's eccodes definitions.

parent 61f46d35
No related branches found
No related tags found
1 merge request!2Split prepare_rundir.sh into three different stages for the whole experiment,...
......@@ -34,3 +34,20 @@ if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; th
else
echo "icon-nwp@${ICON_VERSION} already installed!"
fi
# Need to get ECCODES DWD definitions:
eccodes_version=$(spack find eccodes | grep eccodes@ | cut -d "@" -f 2)
definitions_tar_file=eccodes_definitions.edzw-${eccodes_version}-1.tar.bz2
if [ ! -f ${definitions_tar_file}]; then:
defs_url=https://opendata.dwd.de/weather/lib/grib/${definitions_tar_file}
wget ${defs_url}
# Decompress definitions file
tar -xf ${definitions_tar_file}
# Create a file containing the environment variable that needs to be set in order to use DWD's definitions:
echo "export ECCODES_DEFINITION_PATH=${WORKDIR}/definitions.edzw-${eccodes_version}-1" > eccodes_defs.env
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment