#!/bin/csh -f

set infile = $1
set outfile = $2


setenv CASE 	$3
setenv CNTRLVLS $4
setenv CPL	$5
setenv FLUXOBSFILE	$6
setenv IDLCOLORTABLE	$7
setenv IDLCOLORTABLEFILE	$8
setenv IDLLNDCOLOR	$9
setenv IDLMAXCOLOR	$10
setenv IDLMINCOLOR	$11
setenv RESOLUTION	$12
setenv RHOOBSFILE	$13
setenv SOBSFILE	$14
setenv SSHOBSFILE	$15
setenv SSTOBSFILE	$16
setenv TAVGFILE	$17
setenv TOBSFILE	$18
setenv TOGATAOFILE	$19
setenv WINDOBSFILE	$20
setenv YEAR0	$21
setenv YEAR1	$22
setenv WRKDIR	$23
setenv NCARG_ROOT $24
setenv NCLPATH $25
setenv NCARG_COLORMAP_PATH $26
setenv SEASAVGFILE $27
#for popdiag
setenv SEASAVGRHO $28
setenv SEASAVGTEMP $29
setenv SEASAVGSALT $30
# for time-series
setenv MOCTSANNFILE $28
setenv MOCTSMONFILE $29
setenv FILE_IN $30
setenv TAVGFILE $31
set yr0 = `printf "%04d" $YEAR0`
set yr1 = `printf "%04d" $YEAR1`

set currentDir = $PWD
cd $WRKDIR


echo "file1: "$SEASAVGRHO
echo "file2: "$SEASAVGTEMP
echo "file3: "$SEASAVGSALT

ncl < $infile

cd currentDir
printf "Complete"  > $outfile

