#!/bin/csh #Brian Schlinig #prc_m2_199705 #set variables here set src = may97 set dst = 199705 set mooring = m2 set srcpath = /oasis/$src/raw set dstpath = /oasis_tmp/cosgrove/mooring/monterey/$mooring/specprr set rawpath = /oasis_tmp/cosgrove/mooring/monterey/$mooring/raw set tar1 = $mooring.97.tar set gz1 = $tar1.gz set tar2 = $mooring.98.tar set gz2 = $tar2.gz cd $rawpath #extract the file from thier archives echo Unpacking archives.......................................... cp $srcpath/$gz1 $rawpath gunzip $gz1 tar xvf $tar1 gzip $tar1 cp $srcpath/$gz2 $rawpath gunzip $gz2 tar xvf $tar2 gzip $tar2 #run the extract scripts cd /oasis_tmp/cosgrove/mooring/monterey/bin echo Extracting data.......................................... extract_m2_199705 #delete the files #echo Removing old files....................................... #cleanup_m2_199705 #move the processed data to the correct directory and combine into one file #echo Moving data files........................................ #mv /oasis.old/brian/mooring/prc/$mooring/specprr/* $dstpath/ #echo Combining daily records into a single file............... #concat_m2_199705