#!/bin/csh set maxcr=`/bin/ls -t /disks/stereo/home/www/html/peters/sweapd | head -1 | gawk -f name2CR.gawk | gawk -f makecr/calcCR.gawk` echo We only have data to process up to CR $maxcr foreach cr ( `/bin/ls | grep 'cr[0-9][0-9][0-9][0-9]' | awk '{print substr( $0, 3, length( $0)-2) }'` ) if ( $cr > $maxcr) continue echo Looking for CR $cr summary plots if ( ! -e ./cr${cr}/sta_cr${cr}_spec_v2.gif ) then echo Need to generate STEREO A $cr echo $cr a carr_rot | gawk -f makeCRsummary.gawk | csh endif if ( ! -e ./cr${cr}/stb_cr${cr}_spec_v2.gif ) then echo Need to generate STEREO B $cr echo $cr b carr_rot | gawk -f makeCRsummary.gawk | csh endif end at -c -f makesummaryplot.sh noon tomorrow