#!/bin/bash date export PS4=' $SECONDS + ' set -xa export DATA=${DATA:-${DATAROOT}/${jobid:?}} mkdir -p $DATA cd $DATA ###################################### # Set up the cycle variable ###################################### export cycle=${cycle:-t${cyc}z} # Set PDY setpdy.sh . PDY env export NET=${NET:-gfs} export RUN=${RUN:-gfs} export COMPONENT=${COMPONENT:-wave} export HOMEgfs=${HOMEgfs:-$(dirname $(dirname $0))} # parent directory of current job card # Add default errchk = err_chk export errchk=${errchk:-err_chk} ################################### # Set COM Paths export COMIN=${COMIN:-$(compath.py ${envir}/${NET}/${gfs_ver})/${RUN}.${PDY}/${cyc}/$COMPONENT} export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${gfs_ver}/${RUN}.${PDY})/${cyc}/$COMPONENT} export PCOM=${PCOM:-${COMOUT}/wmo} export SENDCOM=${SENDCOM:-YES} export SENDDBN_NTC=${SENDDBN_NTC:-YES} export SENDDBN=${SENDDBN:-NO} export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn} if [ $SENDCOM = YES ]; then mkdir -p $COMOUT $PCOM fi ################################### # Execute the Script $HOMEgfs/scripts/exgfs_wave_prdgen_bulls.sh status=$? [[ $status -ne 0 ]] && exit $status ################################### # Remove temp directories if [ "$KEEPDATA" != "YES" ]; then cd $DATAROOT rm -rf $DATA fi date exit 0