#!/bin/bash ######################################## # WAFS GFS MANAGER ######################################## date export PS4='$SECONDS + ' set -x #################################### # make temp directory #################################### export DATA=${DATA:-${DATAROOT}/${jobid:?}} mkdir -p "${DATA}" && cd "${DATA}" ########################################### # Run setpdy and initialize PDY variables ########################################### export cycle=${cycle:-"t${cyc}z"} setpdy.sh . ./PDY #################################### # SEND to COM, DBN, etc #################################### #################################### # Specify NET and RUN Name and model #################################### export NET=${NET:-wafs} export RUN=${RUN:-wafs} ############################################## # Define COM directories ############################################## export COMINgfs=${COMINgfs:-$(compath.py "${envir}/gfs/${gfs_ver}")"/gfs.${PDY}/${cyc}/atmos"} #################################### # Determine Job Output Name on System #################################### export pgmout="OUTPUT.$$" #################################### # Specify Execution Areas #################################### ######################################################### # print current environment ######################################################### env ############################################ # Execute the script. ############################################ "${HOMEwafs}/scripts/exwafs_gfs_manager.sh" export err=$? err_chk if [[ -e "${pgmout}" ]]; then cat "${pgmout}" fi ############################## # Remove the Temporary working directory ############################## if [[ "${KEEPDATA^^}" != "YES" ]]; then rm -rf "${DATA}" fi date