#!/bin/sh #set -x; # May be commented out if desired (if not debugging) # Distance ourselves (a tiny bit) from any screen litter: echo; # Determine fully-qualified filesystem location of this script: ANCHOR=`pwd`; cd "$ANCHOR"; # Store this script's name: SCRIPT_NAME=`basename $0`; # Function that displays usage information to the user: # Argument #1: Specific script name usage() { cat < em_case : path to the WRF directory that has the compiled namelists, soundings, links to executables, etc. for a specific compile setup, for example, em_global_mars or em_les. These are the files that will be copied into a run directory, run_dir run_dir : name of the directory in which the WRF simulation will be run (i.e., run directory, i.e., run_dir). This must be the complete path to the run diretory. **NOTE**: Must be executed in the main WRF directory, after the code is compiled/built. ----------------------------------------------------------------------- EOF exit 1; } # Process arguments: if test "x$2" = x; then usage $SCRIPT_NAME; fi if test "x$3" != x; then usage $SCRIPT_NAME; fi # Assign the user inputs to variables. em_case=$1; run_dir=$2; # Check for the existence of the given WRF run directory path; if yes, # then proceed: if test ! -d "$run_dir"; then cat <