################################################################## # # OznMon_config # # This parameter file set up the environment variables used in # scripts to run the ozone monitor package components. # ################################################################## echo "begin OznMon_config" #----------------------------------------------------------------- # This check ensures this file only gets loaded once. Some of # the definitions are built in steps and loading more than once # would make them incorrect. #----------------------------------------------------------------- if [[ $OZNMON_CONFIG -ne 1 ]]; then export OZNMON_CONFIG=1 export MY_MACHINE=wcoss2 #------------------------------------------------------------------- # Note: The file header in the oznstat file has slightly changed. # The default setting is to use that new header format, but # at the moment there is no operational source doing so. So # setting this to 0 will make all file header reads assum the # older format (which does work with the new file header). # Once sources begin to use the new format this can either be # set to 1 or may go away. # export OZNMON_NEW_HDR=${OZNMON_NEW_HDR:-0} # # MY_OZNMON should point to your working directory which contains the # top level directory to the OznMon package. If you checked out the package # as part of the GSI point to the GSI's util/Ozone_Monitor directory. If # you checked out only the Ozone_Monitor portion of the branch then # MY_RADMON should point to that. # export MY_OZNMON=${MY_OZNMON:-/lfs/h2/emc/da/noscrub/Edward.Safford/git/gsi/gfsda.v16.1.5_wcoss2_port/util/Ozone_Monitor} export OZN_SCRIPTS=${OZN_SCRIPTS:-${MY_OZNMON}/scripts} export OZN_DE_SCRIPTS=${OZN_DE_SCRIPTS:-${MY_OZNMON}/data_xtrct/ush} export OZN_DE_SORC=${OZN_DE_SORC:-${MY_OZNMON}/data_xtrct/sorc} export OZN_DE_EXEC=${OZN_DE_EXEC:-${MY_OZNMON}/data_xtrct/exec} export OZN_IG_SCRIPTS=${OZN_IG_SCRIPTS:-${MY_OZNMON}/image_gen/ush} export OZN_IG_GSCRPTS=${OZN_IG_GSCRPTS:-${MY_OZNMON}/image_gen/gscripts} export OZN_EXEDIR=${OZN_EXEDIR:-${MY_OZNMON}/exec} export HOMEgdas_ozn=${HOMEgdas_ozn:-${MY_OZNMON}/nwprod/gdas_oznmon} export FIXgdas_ozn=${FIXgdas_ozn:-${HOMEgdas_ozn}/fix} export HOMEoznmon=${HOMEoznmon:-${MY_OZNMON}/nwprod/oznmon_shared} # # Add these gfs definitions to accomodate the changes # to the J-Job from the fv3_impl merge # export PARMgfs_ozn=${PARMgfs_ozn:-${HOMEgdas_ozn}/parm} export SCRgfs_ozn=${SCRgfs_ozn:-${HOMEgdas_ozn}/scripts} export FIXgfs_ozn=${FIXgfs_ozn:-${HOMEgdas_ozn}/fix} # # The OZN_TANKDIR will be the location for the extracted data files and # the control files used for image plotting. This is the base definition # and the succedding scripts will construct and use subdirectories under # this location. # export OZN_TANKDIR=${OZN_TANKDIR:-/lfs/h2/emc/da/noscrub/Edward.Safford/nbns} if [[ $GLB_AREA -eq 1 ]]; then OZN_IMGN_TANKDIR=${OZN_TANKDIR}/imgn/${OZNMON_SUFFIX} else OZN_IMGN_TANKDIR=${OZN_TANKDIR}/imgn/regional/${OZNMON_SUFFIX} fi export OZN_IMGN_TANKbase=${OZN_IMGN_TANKDIR} if [[ $OZN_USE_RUN -eq 1 ]]; then OZN_IMGN_TANKDIR=${OZN_IMGN_TANKDIR}/${RUN} fi export OZN_IMGN_TANKDIR=$OZN_IMGN_TANKDIR/oznmon/pngs if [[ $GLB_AREA -eq 0 ]]; then NEWtank=${OZN_TANKDIR}/stats/regional/${OZNMON_SUFFIX} else NEWtank=${OZN_TANKDIR}/stats/${OZNMON_SUFFIX} fi export OZN_STATS_TANKDIR=$NEWtank # # Log and work space definitions # export MY_PTMP=${MY_PTMP:-/lfs/h2/emc/ptmp} export PTMP_USER=${PTMP_USER:-${OZN_PTMP}/${LOGNAME}} export MY_STMP=${MY_STMP:-/lfs/h2/emc/stmp} export STMP_USER=${STMP_USER:-${OZN_STMP}/${LOGNAME}} OZN_LOGdir=${LOGdir:-${PTMP_USER}/logs/${OZNMON_SUFFIX}} OZN_WORK_DIR=${OZN_WORK_DIR:-${STMP_USER}/${OZNMON_SUFFIX}} if [[ $OZN_USE_RUN -eq 1 ]]; then OZN_LOGdir=${OZN_LOGdir}/${RUN} OZN_WORK_DIR=${OZN_WORK_DIR}/${RUN} fi export OZN_LOGdir=$OZN_LOGdir/oznmon export OZN_WORK_DIR=${OZN_WORK_DIR}/oznmon # # Webserver settings # export WEB_SVR=${WEB_SVR:-emcrzdm} export WEB_USER=${WEB_USER:-esafford} export WEB_DIR=${WEB_DIR:-/home/people/emc/www/htdocs/gmb/gdas/es_ozn/pngs} # # Utilities used by the OznMon package # export NCP=${NCP:-"/bin/cp -f"} export Z=${Z:-"gz"} if [[ $MY_MACHINE = "wcoss_d" ]]; then shell=sh source /usrx/local/prod/lmod/lmod/init/${shell} MODULEPATH=/usrx/local/prod/lmod/lmod/modulefiles/Core MODULEPATH=${MODULEPATH}:/usrx/local/prod/modulefiles/core_third MODULEPATH=${MODULEPATH}:/usrx/local/prod/modulefiles/defs MODULEPATH=${MODULEPATH}:/gpfs/dell1/nco/ops/nwprod/modulefiles/core_prod export MODULEPATH=${MODULEPATH}:/usrx/local/dev/modulefiles module purge module load ips/18.0.1.163 module load metplus/2.1 module load lsf/10.1 module load prod_util/1.1.2 module load GrADS/2.2.0 export SUB="bsub" export COMPRESS=/usr/bin/gzip export UNCOMPRESS="/usr/bin/gunzip -f" export RSYNC=`which rsync` export GRADS=`which grads` export STNMAP=`which stnmap` elif [[ $MY_MACHINE = "wcoss_c" ]]; then . /opt/modules/3.2.6.7/init/sh module use -a /gpfs/hps/nco/ops/nwprod/modulefiles module use -a /usrx/local/dev/modulefiles module use -a /opt/modulefiles module load prod_util # defines $NDATE among other things module load prod_envir # defines data sources module load GrADS module load xt-lsfhpc export GRADS=`which grads` export STNMAP=`which stnmap` export SUB=`which bsub` export COMPRESS=${COMPRESS:-gzip} export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"} export ACCOUNT=GFS-T2O export RSYNC=`which rsync` elif [[ $MY_MACHINE = "hera" ]]; then export GRADS=/apps/grads/2.0.2/bin/grads export STNMAP=/apps/grads/2.0.2/bin/stnmap export SUB=/apps/slurm/default/bin/sbatch export NDATE=/home/Edward.Safford/bin/ndate export COMPRESS=${COMPRESS:-gzip} export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"} elif [[ $MY_MACHINE = "s4" ]]; then module load grads/2.2.1 module load license_intel/S4 module use /data/prod/hpc-stack/modulefiles/stack module load hpc/1.1.0 module load hpc-intel/18.0.4 module load hpc-impi/18.0.4 module load prod_util/1.2.2 module load netcdf/4.7.4 export GRADS=`which grads` export STNMAP=`which stnmap` export SUB=/usr/bin/sbatch export COMPRESS=${COMPRESS:-gzip} export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"} #rstprod data is not allowed on S4 CHGRP_CMD=echo elif [[ $MY_MACHINE = "jet" ]]; then module load grads/2.2.1 export GRADS=`which grads` export STNMAP=`which stnmap` module use /lfs4/HFIP/hfv3gfs/nwprod/hpc-stack/libs/modulefiles/stack module load hpc/1.1.0 hpc-intel/18.0.5.274 prod_util/1.2.2 export SUB=/apps/slurm/default/bin/sbatch export COMPRESS=${COMPRESS:-gzip} export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"} export PARTITION_OZNMON=${PARTITION_OZNMON:-vjet} elif [[ $MY_MACHINE = "wcoss2" ]]; then export COMPRESS=${COMPRESS:-gzip} export UNCOMPRESS=${UNCOMPRESS:-"gunzip -f"} fi else echo "OznMon_config already loaded" fi echo "end OznMon_config"