#!/bin/csh -f

set obsdir = $1
set tclimfile = $2
set sclimfile = $3
set climAvgfile = $4
set wrkdir = $5
set outfile = $6

cp $obsdir/$tclimfile $outfile 
cp $obsdir/$sclimfile SALT_obs.nc

ncks -A -v SALT SALT_obs.nc $outfile
ncks -A -v TAREA,REGION_MASK $climAvgfile $outfile

#printf "Finished" > $outfile

