#! /bin/csh # process.all - C Shell script to remove processed OASIS data # and reprocess it all # set oasis = /usr/local/oasis cd $oasis foreach name (adcp atlas ctd gps oasis par spectro) rm -f decoded/$name decoded/$name.Z cp src/$name.hdr decoded/$name foreach file ($name/9*) grep -v \# $file >> decoded/$name end compress decoded/$name end echo "Day Air SST T10 T20 T40 T60 T80 T100 T150 T200 T250 T300" > decoded/atlas.mean cd $oasis/atlas foreach file (9*) @ day = $file % 1000 awk -f $oasis/bin/atlas.awk day=$day $file >> $oasis/decoded/atlas.mean end cd $oasis zcat decoded/atlas.Z | awk -f bin/atlreset.awk > decoded/atlas.resets