#! /bin/csh # process - C Shell script to process one day of OASIS data # and append it to processed data files. # By default, the day processed is the previous day in UTC time. # cd /usr/local/oasis if ($#argv > 0) then set file = $1 else set file = `date -u +%y%j` @ file-- set i = 1000 while ( ($i > 0) && (! -e $file) ) @ i-- @ file-- end endif if ( ! -e $file ) \ exit foreach name (adcp atlas ctd gps oasis par spectro) uncompress decoded/$name.Z grep -v \# $file >> decoded/$name compress decoded/$name end @ day = $file % 1000 awk -f bin/atlas.awk day=$day $file >> decoded/atlas.mean