#!/bin/bash #PBS -j oe #PBS -o /lfs/h2/emc/ptmp/yali.mao/working_wafs/log.wafs_gcip #PBS -N wafs_gcip #PBS -l walltime=00:15:00 #PBS -l select=1:ncpus=1:mem=25GB #PBS -q debug #PBS -l debug=true #PBS -A GFS-DEV ##PBS -V ##PBS -W umask=022 #As first line, cd to current working directory where the job was submitted from #cd $PBS_O_WORKDIR set -x ############################################ # Set up the HOME directory ############################################ export NWROOT=/lfs/h2/emc/vpppg/noscrub/yali.mao/git export HOMEwafs=${HOMEwafs:-${NWROOT}/WAFS.fork} ############################################ # Loading module ############################################ source $HOMEwafs/versions/run.ver module reset source $HOMEwafs/dev/modulefiles/wafs.sh module load bufr_dump/$bufr_dump_ver module list ############################################ # Modify ROOT after loading modules ############################################ echo $DCOMROOT export DCOMROOT=/lfs/h1/ops/prod/dcom export DCOMROOTsat=/lfs/h2/emc/ptmp/yali.mao/gmgsi_testdata ############################################ # Define envir ############################################ ### envir: prod/dev/para/bkup/ges/test bkup2/ges2/para2/prod2/prd_p6 export envir=prod ############################################ # set NET RUN ############################################ ### NET: gfs/para/parallel-test/nam/rap/ dump/ens/nawips/nesdis/ export NET=wafs export RUN=wafs ############################################ # user defined ############################################ export cyc=${cyc:-00} export fhr=000 export PDY=$(cut -c 7-14 $COMROOT/date/t${cyc}z) # wafs_gcip for generating global icing analysis for every 3 hours export job=wafs_gcip_${cyc} export pid=${pid:-$$} export jobid=${job}.${pid} USER=$(whoami) ############################################ # SENDCOM=YES--Copy output file to /com # SENDECF=YES--Allow to talk back to ECF # SENDDBN=YES--Alert output file to TOC # KEEPDATA=NO--Remove temporary working ############################################ export SENDCOM=YES export SENDDBN=NO #export SENDDBN_NTC=NO #export SENDDBN_GB2=NO export KEEPDATA=YES ############################################ # Define DATA COMOUT and COMIN ############################################ export COMROOT=/lfs/h2/emc/ptmp/$USER/wafs_dwn/$envir/com export COMPATH=${COMPATHgfs:-/lfs/h1/ops/prod/com/gfs}:${COMPATHradar:-/lfs/h1/ops/prod/com/radarl2} export DATA=/lfs/h2/emc/ptmp/$USER/working_wafs/gcip.$jobid ############################################ # run the job ############################################# sh $HOMEwafs/jobs/JWAFS_GCIP exit