From 397cbb8bb35f8736b42804f6f40dc61247b05c79 Mon Sep 17 00:00:00 2001 From: "fanglin.yang" Date: Fri, 15 Mar 2024 20:35:46 +0000 Subject: [PATCH] add co2dir and reforecast in forecast_postdet.sh to control the type of co2 data to be used for real-time (operational forecast and retrospective parallels) and reanalysis/reforecast type of runs --- ush/forecast_postdet.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index a5fee9a7fd..c9229d436e 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -249,10 +249,15 @@ EOF ${NLN} "${FIXgfs}/lut/optics_SU.v1_3.dat" "${DATA}/optics_SU.dat" fi + co2dir="fix_co2_proj" + if [[ ${reforecast:-"NO"} = "YES" | ]]; then + co2dir="co2dat_4a" + fi + ${NLN} "${FIXgfs}/am/global_co2historicaldata_glob.txt" "${DATA}/co2historicaldata_glob.txt" ${NLN} "${FIXgfs}/am/co2monthlycyc.txt" "${DATA}/co2monthlycyc.txt" if [[ ${ICO2} -gt 0 ]]; then - for file in $(ls "${FIXgfs}/am/fix_co2_proj/global_co2historicaldata"*) ; do + for file in $(ls "${FIXgfs}/am/${co2dir}/global_co2historicaldata"*) ; do ${NLN} "${file}" "${DATA}/$(basename "${file//global_}")" done fi