Skip to content

Commit

Permalink
Correct syntax errors in GSL archive scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhender committed Jan 31, 2024
1 parent 22968d1 commit c326250
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions scripts/exglobal_archive_gsl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ if [[ ${HPSSARCH} = "YES" || ${LOCALARCH} = "YES" ]]; then
targrp_list="${targrp_list} gfs_ics"
fi

fi

# Turn on extended globbing options
yyyy="${PDY:0:4}"
shopt -s extglob
Expand Down
13 changes: 6 additions & 7 deletions ush/hpssarch_gen_gsl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ if [[ ${type} = "gfs" ]]; then
while (( fh <= FHMAX_GFS )); do
fhr=$(printf %03i "${fh}")

if [[ ${ARCH_GAUSSIAN} = "YES" ]]; then
{
if [[ -s ${COM_ATMOS_GRIB_0p25}/${head}pgrb2.0p25.f${fhr} ]]; then
echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}"
echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}.idx"
echo "${COM_ATMOS_HISTORY/${ROTDIR}\//}/${head}atm.logf${fhr}.txt"
fi
{
if [[ -s ${COM_ATMOS_GRIB_0p25}/${head}pgrb2.0p25.f${fhr} ]]; then
echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}"
echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}.idx"
echo "${COM_ATMOS_HISTORY/${ROTDIR}\//}/${head}atm.logf${fhr}.txt"
fi
} >> "${DATA}/gfs_pgrb2.txt"

#JKH {
Expand Down

0 comments on commit c326250

Please sign in to comment.