Skip to content

Commit

Permalink
fix GEFS filenames (NOAA-EMC#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhuazhou authored Oct 19, 2022
1 parent eb2150c commit d4a6a61
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ush/get_extrn_mdl_file_dir_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,12 @@ fi

"GEFS")
fcst_hh=( $( printf "%02d " "${time_offset_hrs}" ) )
# prefix="${yy}${ddd}${hh}${mn}${fcst_mn}"
prefix="${varname_extrn_mdl_memhead}"".t${hh}z.pgrb2b.0p50.f0"
prefix2="${varname_extrn_mdl_memhead}"".t${hh}z.pgrb2a.0p50.f0"
prefix="${yy}${ddd}${hh}${mn}${fcst_mn}"
prefix2=""
if [ "${MACHINE}" = "WCOSS2" ] ; then
prefix="${varname_extrn_mdl_memhead}"".t${hh}z.pgrb2b.0p50.f0"
prefix2="${varname_extrn_mdl_memhead}"".t${hh}z.pgrb2a.0p50.f0"
fi
echo ${varname_extrn_mdl_memhead}
fns_on_disk=( "${fcst_hh/#/$prefix}" )
fns_on_disk2=( "${fcst_hh/#/$prefix2}" )
Expand Down Expand Up @@ -549,6 +552,9 @@ and analysis or forecast (anl_or_fcst):
"GEFS")
fcst_hh=( $( printf "%02d " "${lbc_spec_fhrs[@]}" ) )
prefix="${yy}${ddd}${hh}${mn}${fcst_mn}"
if [ "${MACHINE}" = "WCOSS2" ] ; then
prefix="${varname_extrn_mdl_memhead}"".t${hh}z.pgrb2b.0p50.f0"
fi
fns_on_disk=( "${fcst_hh[@]/#/$prefix}" )
fns_in_arcv=( "${fcst_hh[@]/#/$prefix}" )
;;
Expand Down

0 comments on commit d4a6a61

Please sign in to comment.