Skip to content

Commit

Permalink
add co2dir and reforecast in forecast_postdet.sh to control the type …
Browse files Browse the repository at this point in the history
…of co2 data to be used for real-time (operational forecast and retrospective parallels) and reanalysis/reforecast type of runs
  • Loading branch information
yangfanglin committed Mar 15, 2024
1 parent a5f2495 commit 397cbb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 397cbb8

Please sign in to comment.