#!/bin/csh #Brian Schlinig #extract_m2_199705 #startdate is the first day that I can find all the serial numbers of the # instruments deployed, not the first day of data. set startdate = 97126 set endate = 97262 set date = $startdate set can = m2 #set filepath = /oasis/may97/raw set filepath = /oasis.old/users/brian/mooring/monterey/$can/raw while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis.old/users/brian/mooring/monterey/cfg/$can.cfg $file end @ date ++ end set startdate = 97264 set endate = 97365 set date = $startdate while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis.old/users/brian/mooring/monterey/cfg/$can.cfg $file end @ date ++ end set startdate = 98001 set endate = 98082 set date = $startdate while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis.old/users/brian/mooring/monterey/cfg/$can.cfg $file end @ date ++ end set startdate = 98084 set endate = 98133 set date = $startdate while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis.old/users/brian/mooring/monterey/cfg/$can.cfg $file end @ date ++ end set startdate = 98135 set endate = 98169 set date = $startdate while($date < $endate) foreach file ($filepath/$can.$date.*) echo Extracting $file nice /oasis/bin/extract -y 1 -i specprr -c /oasis.old/brian/mooring/cfg/$can.cfg $file end @ date ++ end