#!/bin/csh # do the Site Time processing here set bdir = $1 set wsta = $2 set datesel = "$3 $4 $5" set prevwd = `pwd` # set the sampler set wsamp = "SiteTime-OnePps-OnePpsDeltas" set ofil = "ppsdat.tmp" # echo the command echo "$bdir/rfclock_rh7 -p /home/gbtlogs -c $wsamp $datesel -o $ofil -w" # actually do the command $bdir/rfclock_rh7 -p /home/gbtlogs -c $wsamp $datesel -o $ofil -w echo -n "want to plot? (cr)no, (1)GPS, (2)MSM, (3)vlba, (4)1pps_return :" set wreply = $< if($wreply < 1) then exit else set prevwd = `pwd` cd /users/fghigo/CLOCKS/dailyplots endif set tfil = $prevwd/$ofil echo -n "hard copy? (cr)no, (1)yes : " set hc = $< switch ($wreply) case 1: if($hc != 1) then idl -e "giplt,'$tfil','CNS_GPS1' & t=dialog_message('Done')" endif if($hc == 1) then idl -e "giplt,'$tfil','CNS_GPS1',/hcopy" lp -d $PRINTER giplt.ps endif breaksw; case 2: if($hc != 1) then idl -e "giplt,'$tfil','MicroSem' & t=dialog_message('Done')" endif if($hc == 1) then idl -e "giplt,'$tfil','MicroSem',/hcopy" lp -d $PRINTER giplt.ps endif breaksw; case 3: if($hc != 1) then idl -e "giplt,'$tfil','GBT_VLBA' & t=dialog_message('Done')" endif if($hc == 1) then idl -e "giplt,'$tfil','GBT_VLBA',/hcopy" lp -d $PRINTER giplt.ps endif breaksw; case 4: if($hc != 1) then idl -e "giplt,'$tfil','GBTRtn' & t=dialog_message('Done')" endif if($hc == 1) then idl -e "giplt,'$tfil','GBTRtn',/hcopy" lp -d $PRINTER giplt.ps endif breaksw; endsw cd $prevwd