#!/bin/csh -f
#
 set echo
#
cat >! user.in << EOF
 &userin
  view_times=0.,6.,12.,
  gracetime_in_seconds=300.,       
  model_version = 'mm5v3 output',
  new_fields = 'the',
  discard_fields = 'RAD', 'PP ',
  interp_2_height = .true.,
  output_terrain = .false. /
 &end
EOF

# discard_fields = 'RAD TEND', 'TKE     ',
#
#    Available 3-D fields for output to vis5d.
#
#'tmc',        TEMP C     TEMPERATURE, DEG. CELSIUS
#'tdp',        DEWP TEM   DEWPOINT, DEG. CELSIUS
#'twb',        WET-BULB   TEMP., DEG. C
#'qvp',        WATR VAP   WATER VAP MIX RAT, G/KG
#'prs',        PRESS      PRESSURE, MB
#'the',        POT TEMP   POT. TEMPERATURE, K
#'eth',        EQ POT T   EQUIV. POT. TEMP., K
#'lep',        RAIN WAT   LIQ EQV PRC=QSN+QRA, G/KG
#'lec',        CLOUD WA   CLOUD=QCI+QCW, G/KG
#'ilec',       INTG CLW   INTEGRATED LQ EQV
#'pvo',        PV         POTENTIAL VORTICITY, PVU
#'pvm',        MOIST PV   MOIST PV, PVU
#'vor',        REL VOR    RELATIVE VORT., PER S
#'avo',        ABS VOR    ABSOLUTE VORT., PER S
#'rhu',        REL HUM    REL. HUM. WRT LIQ., PERCENT
#'rhi',        REL HUMI   REL. HUM. WRT ICE, PERCENT
#'omg',        OMEGA      DP/DT, MB/S
#'sgd',        DSIGMADT   D(SIGMA)/DT, PER S
#'wsp',        HOR WSP    HORIZ. WIND SPEED, M/S
#'wdr',        HOR WDIR   HORIZ. WIND DIR, DEG
#'stb',        STABILITY -D(THETA)/DP, K/MB
#
#    Available 2-D fields for output to vis5d.
#
#'slp',        SEA-LEVEL PRESSURE, MB
#'slp2',       SEA-LEVEL PRESSURE 2, MB
#'tre',        EXPL. PRCP. TEND., MM
#'trc',        CONVEC. PRCP. TEND., MM
#
#-----------------------------------------------
#
if ( ! -e $1 ) then
    echo "The file $1 does not exist"
    exit 1
endif
#

./tovis5d $1 >&! tovis5d.log


