Skip to content
16 changes: 16 additions & 0 deletions dev/scripts/exgfs_atmos_awips_20km_1p0deg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ for GRID in conus ak prico pac 003; do
if [[ ${err} -ne 0 ]]; then
err_exit "Failed to generate the awips Grib2 file!"
fi
echo "Complex2 compression/packing for grib2.awpgfs${fcsthr}.${GRID}"
cpreq "grib2.awpgfs${fcsthr}.${GRID}" "tmp_grib2_${fcsthr}_${GRID}"
${WGRIB2} "tmp_grib2_${fcsthr}_${GRID}" -set_grib_type complex2 \
-grib_out "grib2.awpgfs${fcsthr}.${GRID}"
export err=$?
if [[ ${err} -ne 0 ]]; then
err_exit "Failed to compress and repack the awips Grib2 file!"
fi

##############################
# Post Files to ${COMOUT_ATMOS_WMO}
Expand Down Expand Up @@ -214,6 +222,14 @@ for GRID in conus ak prico pac 003; do
if [[ ${err} -ne 0 ]]; then
err_exit "Failed to write the AWIPS grib2 file"
fi
echo "Complex2 compression/packing for grib2.awpgfs_20km_${GRID}_f${fcsthr}"
cpreq "grib2.awpgfs_20km_${GRID}_f${fcsthr}" "tmp_grib2_${GRID}_f${fcsthr}"
${WGRIB2} "tmp_grib2_${GRID}_f${fcsthr}" -set_grib_type complex2 \
-grib_out "grib2.awpgfs_20km_${GRID}_f${fcsthr}"
export err=$?
if [[ ${err} -ne 0 ]]; then
err_exit "Failed to compress and repack the AWIPS grib2 file!"
fi

##############################
# Post Files to ${COMOUT_ATMOS_WMO}
Expand Down
Loading