#!/bin/csh # prc_ep1 - reprocess eqpac data # # This requires a modification to the default cfg file in /oasis/eqpac/cfg. # Change the data line to read: data /2s0/data/users/brian/mooring/eqpac/ep2 # # 28 Jun 1999 - version 0.1 # Brian Schlining set cfgpath = /oasis.old/users/brian/mooring/eqpac/cfg #============================================ # Move 199611 deployment data and extract it #============================================ set start = 1 set end = 9 set n = $start set can = ep1 set srcpath = /oasis/eqpac/deployments/199611/raw set dstpath = /oasis.old/users/brian/mooring/eqpac/ep1/raw while($n < $end) foreach file ($srcpath/$can.$n.gz) echo $n. $can.$n.gz echo moving::::: $file cp $file $dstpath/ echo unzipping:: $dstpath/$can.$n.gz gunzip $dstpath/$can.$n.gz echo extracting: $dstpath/$can.$n nice /oasis/bin/extract -y 1 -i specprr -c $cfgpath/$can.cfg $dstpath/$can.$n echo removing::: $dstpath/$can.$n rm -f $dstpath/$can.$n end @ n ++ end #============================================ # Move 199711 deployment data and extract it #============================================ set n = 0 set srcpath = /oasis/eqpac/deployments/199711/raw echo 9. $can.$n.gz set file = $srcpath/$can.$n.gz echo moving::::: $file cp $file $dstpath/ echo unzipping:: $dstpath/$can.$n.gz gunzip $dstpath/$can.$n.gz echo extracting: $dstpath/$can.$n nice /oasis/bin/extract -y 1 -i specprr -c $cfgpath/$can.cfg $dstpath/$can.$n echo removing::: $dstpath/$can.$n rm -f $dstpath/$can.$n set n = 300 set file = $srcpath/$can.$n.gz echo 10. $can.$n.gz echo moving::::: $file cp $file $dstpath/ echo unzipping:: $dstpath/$can.$n.gz gunzip $dstpath/$can.$n.gz echo extracting: $dstpath/$can.$n nice /oasis/bin/extract -y 1 -i specprr -c $cfgpath/$can.cfg $dstpath/$can.$n echo removing::: $dstpath/$can.$n rm -f $dstpath/$can.$n #============================================ # Move 199811 deployment data and extract it #============================================ set srcpath = /oasis/eqpac/deployments/199811/raw set name = ep1.19990708 set file = $srcpath/$name echo moving::::: $file cp $file $dstpath/ echo extracting: $dstpath/$name nice /oasis/bin/extract -b -y 1 -i specprr -i microcat -c $cfgpath/$can.cfg $dstpath/$name echo removing::: $dstpath/$name rm -f $dstpath/$name set name = ep1.19991027 set file = $srcpath/$name echo moving::::: $file cp $file $dstpath/ echo extracting: $dstpath/$name nice /oasis/bin/extract -b -y 1 -i specprr -i microcat -c $cfgpath/$can.cfg $dstpath/$name echo removing::: $dstpath/$name rm -f $dstpath/$name