diff --git a/templates/real-from-d2-ana/prepare_lbc_remote.sh b/templates/real-from-d2-ana/prepare_lbc_remote.sh index 2da0d2c5f4f16f18bef570faba0c12a78a7dcf76..75c93e6de51309f61afa75237fd6f3d5fd94367f 100644 --- a/templates/real-from-d2-ana/prepare_lbc_remote.sh +++ b/templates/real-from-d2-ana/prepare_lbc_remote.sh @@ -84,6 +84,15 @@ 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 + fi # rename to the comfortable style for ICON mv work/${MEMBER}/iefff${EU_FC_TIME}0000.grb ${MEMBER_DIR}/latbc_${D2_FC_TIME}.${MEMBER^}.grib