From 29bd2121882f5fdada536a87486cf3084a50cdaf Mon Sep 17 00:00:00 2001 From: Guillaume Vernieres Date: Wed, 1 Mar 2023 10:13:39 -0500 Subject: [PATCH 1/5] fixed mom6 bkg output --- ush/forecast_postdet.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index effc5cc36e..84a1ec17fa 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -876,15 +876,13 @@ MOM6_postdet() { elif [[ "${CDUMP}" =~ "gdas" ]]; then # Link output files for CDUMP = gdas - # MOM6 does not write out the first forecast hour, so start at FHOUT - local fhr="${FHOUT}" - while [[ "${fhr}" -le "${FHMAX}" ]]; do + # Save MOM6 backgrounds + local fhr="${FHMIN}" + for fhr in $OUTPUT_FH; do local idatestr=$(date -d "${CDATE:0:8} ${CDATE:8:2} + ${fhr} hours" +%Y_%m_%d_%H) local fhr3=$(printf %03i ${fhr}) $NLN "${COMOUTocean}/${CDUMP}.t${cyc}z.ocnf${fhr3}.nc" "${DATA}/ocn_da_${idatestr}.nc" - local fhr=$((fhr + FHOUT)) done - fi mkdir -p "${COMOUTocean}/RESTART" From d2304ca3e1dd977574da2ef4e21b216088e4138b Mon Sep 17 00:00:00 2001 From: Guillaume Vernieres Date: Wed, 1 Mar 2023 10:26:19 -0500 Subject: [PATCH 2/5] shell norm --- ush/forecast_postdet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index 84a1ec17fa..e375f3f60b 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -878,9 +878,9 @@ MOM6_postdet() { # Save MOM6 backgrounds local fhr="${FHMIN}" - for fhr in $OUTPUT_FH; do + for fhr in ${OUTPUT_FH}; do local idatestr=$(date -d "${CDATE:0:8} ${CDATE:8:2} + ${fhr} hours" +%Y_%m_%d_%H) - local fhr3=$(printf %03i ${fhr}) + local fhr3=$(printf %03i "${fhr}") $NLN "${COMOUTocean}/${CDUMP}.t${cyc}z.ocnf${fhr3}.nc" "${DATA}/ocn_da_${idatestr}.nc" done fi From 300fff965cde130f915ba9e6937492595f737770 Mon Sep 17 00:00:00 2001 From: Guillaume Vernieres Date: Wed, 1 Mar 2023 15:01:43 -0500 Subject: [PATCH 3/5] removing ssh avg --- parm/parm_fv3diag/diag_table_da | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/parm/parm_fv3diag/diag_table_da b/parm/parm_fv3diag/diag_table_da index 5e5bc76e5e..f813782d68 100644 --- a/parm/parm_fv3diag/diag_table_da +++ b/parm/parm_fv3diag/diag_table_da @@ -2,15 +2,15 @@ "fv3_history2d", 0, "hours", 1, "hours", "time" "ocn_da%4yr%2mo%2dy%2hr", 0, "hours", 1, "hours", "time", 1, "hours", "1901 1 1 0 0 0" -"ocean_model", "geolon", "geolon", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "geolat", "geolat", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "SSH", "ave_ssh", "ocn_da%4yr%2mo%2dy%2hr", "all", .true., "none", 2 -"ocean_model", "MLD_0125", "MLD", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "u", "u", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "v", "v", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "h", "h", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "salt", "Salt", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 -"ocean_model", "temp", "Temp", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "geolon", "geolon", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "geolat", "geolat", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "SSH", "ave_ssh", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "MLD_0125", "MLD", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "u", "u", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "v", "v", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "h", "h", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "salt", "Salt", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "temp", "Temp", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 "gfs_dyn", "ucomp", "ugrd", "fv3_history", "all", .false., "none", 2 "gfs_dyn", "vcomp", "vgrd", "fv3_history", "all", .false., "none", 2 From 1e9144e4b4059c82fff8f2818a363ebddbf3df93 Mon Sep 17 00:00:00 2001 From: Guillaume Vernieres Date: Wed, 1 Mar 2023 17:42:17 -0500 Subject: [PATCH 4/5] reverting diag table --- parm/parm_fv3diag/diag_table_da | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/parm/parm_fv3diag/diag_table_da b/parm/parm_fv3diag/diag_table_da index f813782d68..5e5bc76e5e 100644 --- a/parm/parm_fv3diag/diag_table_da +++ b/parm/parm_fv3diag/diag_table_da @@ -2,15 +2,15 @@ "fv3_history2d", 0, "hours", 1, "hours", "time" "ocn_da%4yr%2mo%2dy%2hr", 0, "hours", 1, "hours", "time", 1, "hours", "1901 1 1 0 0 0" -"ocean_model", "geolon", "geolon", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "geolat", "geolat", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "SSH", "ave_ssh", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "MLD_0125", "MLD", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "u", "u", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "v", "v", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "h", "h", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "salt", "Salt", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 -"ocean_model", "temp", "Temp", "ocn_da%4yr%2mo%2dy%2hr", "all", "none", "none", 2 +"ocean_model", "geolon", "geolon", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "geolat", "geolat", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "SSH", "ave_ssh", "ocn_da%4yr%2mo%2dy%2hr", "all", .true., "none", 2 +"ocean_model", "MLD_0125", "MLD", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "u", "u", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "v", "v", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "h", "h", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "salt", "Salt", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 +"ocean_model", "temp", "Temp", "ocn_da%4yr%2mo%2dy%2hr", "all", .false., "none", 2 "gfs_dyn", "ucomp", "ugrd", "fv3_history", "all", .false., "none", 2 "gfs_dyn", "vcomp", "vgrd", "fv3_history", "all", .false., "none", 2 From 71ff4f62ce844af3b4e1a8b383c75619a71dc684 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Thu, 2 Mar 2023 09:51:21 -0500 Subject: [PATCH 5/5] Update ush/forecast_postdet.sh --- ush/forecast_postdet.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index e375f3f60b..0eb4f870fb 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -877,7 +877,6 @@ MOM6_postdet() { # Link output files for CDUMP = gdas # Save MOM6 backgrounds - local fhr="${FHMIN}" for fhr in ${OUTPUT_FH}; do local idatestr=$(date -d "${CDATE:0:8} ${CDATE:8:2} + ${fhr} hours" +%Y_%m_%d_%H) local fhr3=$(printf %03i "${fhr}")