Skip to content

Commit

Permalink
Fix get_lbcs for AQM.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielabdi-noaa committed Mar 10, 2023
1 parent 450e241 commit 1c12a16
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions scripts/exregional_get_extrn_mdl_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,18 @@ elif [ "${ICS_OR_LBCS}" = "LBCS" ]; then
first_time=$((TIME_OFFSET_HRS))
else
first_time=$((TIME_OFFSET_HRS + LBC_SPEC_INTVL_HRS ))

if [ "${FCST_LEN_HRS}" = "-1" ]; then
for i_cdate in "${!ALL_CDATES[@]}"; do
if [ "${ALL_CDATES[$i_cdate]}" = "${PDY}${cyc}" ]; then
FCST_LEN_HRS="${FCST_LEN_CYCL_ALL[$i_cdate]}"
break
fi
done
fi
fi
last_time=$((TIME_OFFSET_HRS + end_hr))

#--- Revisits this for AQM ----#
#first_time=$((TIME_OFFSET_HRS + LBC_SPEC_INTVL_HRS))
#if [ "${FCST_LEN_HRS}" = "-1" ]; then
# for i_cdate in "${!ALL_CDATES[@]}"; do
# if [ "${ALL_CDATES[$i_cdate]}" = "${PDY}${cyc}" ]; then
# FCST_LEN_HRS="${FCST_LEN_CYCL_ALL[$i_cdate]}"
# break
# fi
# done
#fi
#last_time=$((TIME_OFFSET_HRS + FCST_LEN_HRS))

fcst_hrs="${first_time} ${last_time} ${LBC_SPEC_INTVL_HRS}"
file_names=${EXTRN_MDL_FILES_LBCS[@]}
Expand Down

0 comments on commit 1c12a16

Please sign in to comment.