Skip to content

Commit

Permalink
Fix octal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GwenChen-NOAA committed Jul 1, 2024
1 parent 307dcac commit d15df32
Showing 1 changed file with 20 additions and 37 deletions.
57 changes: 20 additions & 37 deletions jobs/JGFS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ for grid in 1p00 0p50 0p25 40km 35km_atl 35km_pac; do
fi
done

fhr=10#${FHR3}
ocean_domain_max=180
if (( ocean_domain_max > FHMAX_GFS )); then
ocean_domain_max=${FHMAX_GFS}
Expand All @@ -43,16 +44,16 @@ fi
##################################################################
fhmin=0
fhmax=240
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 3 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 3 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "1p00" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_1p00}"
fi
fi

fhmin=252
fhmax=384
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 12 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 12 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "1p00" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_1p00}"
fi
fi
Expand All @@ -62,24 +63,24 @@ fi
##################################################################
fhmin=0
fhmax=240
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 3 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 3 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "0p50" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_0p50}"
fi
fi

fhmin=246
fhmax=276
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 6 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 6 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "0p50" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_0p50}"
fi
fi

fhmin=288
fhmax=384
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 12 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 12 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "0p50" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_0p50}"
fi
fi
Expand All @@ -89,57 +90,39 @@ fi
####################################################################
fhmin=0
fhmax=120
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 1 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 1 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "0p25" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_0p25}"
fi
fi

fhmin=123
fhmax=240
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 3 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 3 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "0p25" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_0p25}"
fi
fi

fhmin=252
fhmax=384
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 12 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 12 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "0p25" "${FHR3}" "GFS_GEMPAK" "${COM_ATMOS_GEMPAK_0p25}"
fi
fi

####################################################################
# Execute the script to create the 35km Pacific grids for OPC
# Execute the script to create the 35km and 40km grids
#####################################################################
fhmin=0
fhmax="${ocean_domain_max}"
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 3 == 0)); then
if (( fhr >= fhmin && fhr <= fhmax )); then
if ((fhr % 3 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "35km_pac" "${FHR3}" "GFS_GEMPAK_WWB" "${COM_ATMOS_GEMPAK_35km_pac}"
fi
fi

####################################################################
# Execute the script to create the 35km Atlantic grids for OPC
#####################################################################
fhmin=0
fhmax="${ocean_domain_max}"
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 3 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "35km_atl" "${FHR3}" "GFS_GEMPAK_WWB" "${COM_ATMOS_GEMPAK_35km_atl}"
fi
fi

#####################################################################
# Execute the script to create the 40km grids for HPC
######################################################################
fhmin=0
fhmax="${ocean_domain_max}"
if (( FHR3 >= fhmin && FHR3 <= fhmax )); then
if ((FHR3 % 3 == 0)); then
"${SCRgfs}/exgfs_atmos_nawips.sh" "40km" "${FHR3}" "GFS_GEMPAK_WWB" "${COM_ATMOS_GEMPAK_40km}"
fi
fi
Expand Down

0 comments on commit d15df32

Please sign in to comment.