From f1f2b2b2fe8f5dc5a2aaeab5b039fc8d935a5ec1 Mon Sep 17 00:00:00 2001
From: "Takumi.Matsunobu" <Takumi.Matsunobu@physik.uni-muenchen.de>
Date: Wed, 16 Aug 2023 10:55:33 +0200
Subject: [PATCH] fix error in prepare_date_remote

---
 templates/real-from-d2-ana/prepare_date_remote.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/real-from-d2-ana/prepare_date_remote.sh b/templates/real-from-d2-ana/prepare_date_remote.sh
index 1423520..91988fb 100644
--- a/templates/real-from-d2-ana/prepare_date_remote.sh
+++ b/templates/real-from-d2-ana/prepare_date_remote.sh
@@ -72,8 +72,9 @@ if [ "${IC_DATA_IS_LOCAL}" != "True" ]; then
   awk '{print $1}' fg_file.txt | xargs -I[] ln -sf [] .
 
   grib_set -s stepRange=0,dataTime=0,dataDate=${STARTDATE:0:8} "%simulation.lbc_hhl_filepath%" ${COMMON_DATE_FOLDER}/HHL.grib 
+  grib_set -s stepRange=0,dataTime=0,dataDate=${STARTDATE:0:8} "%simulation.lbc_wz_filepath%" ${COMMON_DATE_FOLDER}/WZ.grib 
 
-  if [ "%simulation.lbc_wz_attach%" -eq "True" ]; then
+  if [ "%simulation.lbc_wz_attach%" = "True" ]; then
     grib_copy "%simulation.lbc_wz_filepath%" ${COMMON_DATE_FOLDER}/WZ.grib 
   fi
 
-- 
GitLab