#! /bin/sh set -xa # # <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>> # <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>> # << FSL_satw.run >> # << >> # << GOES satellite winds datasets >> # <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>> # <<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>> # # It is called with Arguments: # Arg 1: the run directory # Arg 2: the temporal frequency of the output obs (1 or 3 hours) # Arg 3: the current time in YYJJJHHMM format (eg 930691200) # # Imported variables # CDY - Current day (like PDY but not based on com/date) # HHMM - Current time # ############################################################################### # ASSIGN THE ARGUMENTS ############################################################################### RUNDIR=${DATA} TFREQ=$2 ATIME=$3 HH=${HHMM:0:2} CDATEHH=${CDY:?}${HH} mkdir -p ${RUNDIR}/satw ${COMOUT}/satw/bufr cd ${RUNDIR}/satw BUFRDIR=${COMOUT}/satw/bufr export SKIP_005021=1 export SKIP_005022=1 SKIP_005023=1 SKIP_005041=1 SKIP_005042=1 SKIP_005043=1 export SKIP_005044=1 SKIP_005045=1 SKIP_005046=1 export SKIP_005064=1 SKIP_005065=1 SKIP_005066=1 export SKIP_005067=1 SKIP_005068=1 SKIP_005069=1 export SKIP_005070=1 SKIP_005071=1 export SKIP_005091=1 export DTIM_earliest_satwnd=-7.0 export DTIM_latest_satwnd=0.5 HOUR=$CDATEHH RAD="2" DGRP="satwnd" MIN=${HHMM:2:2} FNAME="${HOUR}${MIN}" ${DUMPJB:?} $HOUR $RAD $DGRP export err=$? #clp change error checking export err=$? if [[ $err -ne 11 && $err -ne 0 && $err -ne 22 ]] then err_chk fi mv ${DATA}/${DGRP}.ibm ${BUFRDIR}/${ATIME}.bufr_d mv ${DATA}/${DGRP}.out ./$FNAME.out if [ "$SENDDBN" = 'YES' ] ; then export DBNALERT_TYPE=${DBNALERT_TYPE:-DATA} $SIPHONROOT/bin/dbn_alert $DBNALERT_TYPE MADIS_DUMP $job ${BUFRDIR}/${ATIME}.bufr_d fi