#! /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 set file = `date -u +%y%j` if ( $file % 1000 > 1 ) then @ file-- else @ year = $file / 1000 - 1 $day = 366 if ( $year % 4 ) $day = 365 set file = $year$day endif if ($#argv > 0) set file = $1 foreach name (adcp atlas ctd gps oasis par spectro) uncompress decoded/$name.Z if ( -e $file ) \ grep -v \# $file >> decoded/$name compress decoded/$name end @ day = $file % 1000 awk -f bin/atlas.awk day=$day $file >> decoded/atlas.mean