From 2096506e9fa6b9188c18346c4dcecedc960ee87f Mon Sep 17 00:00:00 2001 From: "Takumi.Matsunobu" <Takumi.Matsunobu@physik.uni-muenchen.de> Date: Wed, 16 Aug 2023 10:35:53 +0200 Subject: [PATCH] Adjust for LBC 2022 --- templates/real-from-d2-ana/prepare_lbc_remote.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/templates/real-from-d2-ana/prepare_lbc_remote.sh b/templates/real-from-d2-ana/prepare_lbc_remote.sh index a83d5e0..e052dd9 100644 --- a/templates/real-from-d2-ana/prepare_lbc_remote.sh +++ b/templates/real-from-d2-ana/prepare_lbc_remote.sh @@ -84,14 +84,12 @@ if [ "${LBC_DATA_IS_LOCAL}" != "True" ]; then --dest work/${MEMBER} \ --output-format grb - # before 2022 wind field is only 3-hourly - if [ ${STARTDATE} -lt 2022010100 ]; then - if [ $((tt2 % 3)) -ne 0 ]; then - grib_copy work/${MEMBER}/iefff${EU_FC_TIME}0000.grb work/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t -w shortName!=wz - mv work/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t work/${MEMBER}/iefff${EU_FC_TIME}0000.grb - grib_set -s stepRange=$((tt2 * 60)),dataTime=0,dataDate=${STARTDATE:0:8} ${COMMON_DATE_FOLDER}/WZ.grib work/${MEMBER}/WZ.grib - cat work/${MEMBER}/WZ.grib >> work/${MEMBER}/iefff${EU_FC_TIME}0000.grb - fi + # compensate missing vertical wind field + if [ $((tt2 % 3)) -ne 0 ]; then + grib_copy work/${MEMBER}/iefff${EU_FC_TIME}0000.grb work/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t -w shortName!=wz + mv work/${MEMBER}/iefff${EU_FC_TIME}0000.grb_t work/${MEMBER}/iefff${EU_FC_TIME}0000.grb + grib_set -s stepRange=$((tt2 * 60)),dataTime=0,dataDate=${STARTDATE:0:8} ${COMMON_DATE_FOLDER}/WZ.grib work/${MEMBER}/WZ.grib + cat work/${MEMBER}/WZ.grib >> work/${MEMBER}/iefff${EU_FC_TIME}0000.grb fi # rename to the comfortable style for ICON -- GitLab