#!/usr/bin/env ksh ###################################################################### # input wrapper script ###################################################################### ###################################################################### # # #Frimel DTC Jan 2015 # # Taken from existing wrapper scripts # ###################################################################### # # WHAT: # ---- # A simple wrapper to run the input task in order to pull down some # data from the Mass Store. # # HOW: # --- # 1. # Assumes Launcher wrapper has been run. # 2. # Among the "other" conf settings ... assumes the following # hwrf_basic.conf # - input_catalog=hwrfdata # hwrf_input.conf # - [jet_sources_PROD2014] modify this section for pulling data from # mass store. # 3. # Assumes CONFhwrf set below resolves to the same location that is # defined in storm1.conf from running the launcher wrapper ###################################################################### # Definitions ###################################################################### #--------------------------------------------------------------------- # Global definitions of environment variables #--------------------------------------------------------------------- #set -x . ./global_vars.ksh if [ -z "$PYTHONPATH" ] ; then export PYTHONPATH=${USHhwrf} else export PYTHONPATH=${PYTHONPATH}:${USHhwrf} fi # Remove the 'basename' from HOMEhwrf # HOMEhwrf=/mnt/pan2/projects/dtc-hurr/James.T.Frimel/hwrf_multistorm # expt_parentdir=/mnt/pan2/projects/dtc-hurr/James.T.Frimel expt_parentdir=`dirname ${HOMEhwrf}` # Set CONFhwrf export CONFhwrf=${expt_parentdir}/pytmp/$expt/com/${START_TIME}/${SID}/storm1.conf ###################################################################### # Main ###################################################################### # change to the ush directory so the imports in input.py can be found. cd ${HOMEhwrf}/ush ${HOMEhwrf}/scripts/exhwrf_input.py