Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These jobs will need to be adjusted between the last forecast run of 49r1 and the first run of 50r1 on the implementation date. Alternatively, users could add an if statement to their scripts which sets stream according to the model version which is available as en environmental variable in ECaccess Time Critical Service jobs. A simple example is given below:

Code Block
languagebash
titlebash
echo "MSJ_IFS_CYCLE=" $MSJ_IFS_CYCLE

if [[ "$MSJ_IFS_CYCLE" == "49r1" ]]; then
  STREAM="scda"
elif [[ "$MSJ_IFS_CYCLE" == "50r1" ]]; then
  STREAM="oper"
else
  STREAM="oper"
fi

mars <<EOF
RETRIEVE,
stream  =       ${STREAM},
expver  =       1,
class   =       od,
date    =       ${MSJ_YEAR}${MSJ_MONTH}${MSJ_DAY},
time    =       ${MSJ_BASETIME},
type    =       fc,
step    =       3/to/24/by/3,
levtype =       sfc,
param   =       96.174/167.128,
target  =       "/scratch/$USER/IFS_[stream]_[type]_[levtype]_[date][time]00"
EOF

...