#!/bin/csh # prc_ep2 - 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 #============================================ # ep2.1 is in hex format, deal with it seperately here set n = 1 set can = ep2 set srcpath = /oasis/eqpac/deployments/199611/raw set dstpath = /oasis.old/users/brian/mooring/eqpac/ep2/raw echo 1. $can.$n.hex set file = $srcpath/$can.$n.hex echo moving::::: $file cp $file $dstpath/ echo extracting: $dstpath/$can.$n.hex nice /oasis/bin/extract -h -y 1 -i specprr -c $cfgpath/$can.cfg $dstpath/$can.$n.hex echo removing::: $dstpath/$can.$n.hex rm -f $dstpath/$can.$n.hex set start = 2 set end = 6 set n = $start 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 6. $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 = 310 set file = $srcpath/$can.$n.gz echo 7. $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 = ep2.19990717 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 = ep2.19991105 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