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

Fix an_member in proj.conf and prepare_rundir

parent 0e88724c
No related branches found
No related tags found
1 merge request!2Split prepare_rundir.sh into three different stages for the whole experiment,...
......@@ -22,5 +22,4 @@ data_management:
initial_conditions:
parent_folder: /archive/meteo/external-models/dwd/icon/oper/icon_oper_eps_gridded-global_rolling/
# member needs to be an string of three characters!
member: "001"
\ No newline at end of file
member: 1
\ No newline at end of file
......@@ -47,7 +47,7 @@ function download_file() {
# some settings
MEMBER=%initial_conditions.member%
AN_MEMBER=$(printf "%03d" %initial_conditions.member%)
INITIAL_CONDITIONS_PARENT_FOLDER=%initial_conditions.parent_folder%
INITIAL_CONDITIONS_PATH=${INITIAL_CONDITIONS_PARENT_FOLDER}/${STARTDATE:0:6}/${STARTDATE:0:8}T00
......@@ -55,8 +55,8 @@ INITIAL_CONDITIONS_PATH=${INITIAL_CONDITIONS_PARENT_FOLDER}/${STARTDATE:0:6}/${S
#FG_FILE=igfff00030000.m${MEMBER}.grb
AN_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name igfff00030000.m${MEMBER}.grb | sort | tail -n 1)
FG_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "igaf*00.m${MEMBER}.grb" | sort | tail -n 1)
AN_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name igfff00030000.m${AN_MEMBER}.grb | sort | tail -n 1)
FG_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "igaf*00.m${AN_MEMBER}.grb" | sort | tail -n 1)
if [ ! -f "${AN_SOURCE}" ]; then
echo "Analysis file for date ${STARTDATE} not found!"
......
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