awips2/nativeLib/ohd.var/scripts/run_var_assimilator
root a02aeb236c Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]
Former-commit-id: 9f19e3f712
2012-01-06 08:55:05 -06:00

24 lines
703 B
Bash

#!/bin/ksh
# File name: run_var_assimilator
# Author : Varalakshmi Rajaram
# This allows you to run this script from outside of ./bin
RUN_FROM_DIR=`dirname $0`
# set up SOME environment variables for WHFS applications
. $RUN_FROM_DIR/../../set_hydro_env
export var_dir=$WHFS_LOCAL_DATA_DIR/var
VAR_OUTPUT_DIR=$var_dir/output
#VAR_LOG is the hard-coded name for the output for the FORTRAN code
VAR_LOG=$VAR_OUTPUT_DIR/log_var
rm -f $VAR_LOG
fortran_var_log_dir=$WHFS_LOCAL_DATA_DIR/log/var/
fortran_var_log=$fortran_var_log_dir/stdout_fortran_var.log
#Execute the Fortran var program
$WHFS_BIN_DIR/var_assimilator.LX > $fortran_var_log 2>&1
echo "Completed Var-- in script" >> $fortran_var_log