#!/bin/csh
source /usr/share/modules/init/csh
module load netcdf-intel/3.6.3-11.1.038

cd $PBS_O_WORKDIR

foreach file (`find ./ -name "PREVIMER*.nc"`)
	echo $file
	ncatted -O -h -a units,SAL,m,c,'1e-3' $file
	ncatted -O -h -a units,TEMP,m,c,'degree_Celsius' $file
end

exit 0

