#!/bin/csh -f

set hormeanfile = $1
set hormeanfileTemp = $2
set rmsfile = $3
set region = $4
set wrkdir = $5
set out = $6
set year = $7

ncrename -v TEMP,TEMP_RMS -v SALT,SALT_RMS $rmsfile 
mv $hormeanfileTemp $hormeanfile
ncks -A -v TEMP_RMS,SALT_RMS $rmsfile  $hormeanfile

printf "Finished" > $out

