(file) Return to update_mdi.csh CVS log (file) (dir) Up to [Development] / JSOC / proj / workflow

File: [Development] / JSOC / proj / workflow / update_mdi.csh (download) / (as text)
Revision: 1.3, Sat Jan 8 01:09:18 2011 UTC (12 years, 4 months ago) by jeneen
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, Ver_8-0, Ver_7-1, Ver_7-0, Ver_6-4, Ver_6-3, Ver_6-2, Ver_6-1, Ver_6-0, Ver_5-14, Ver_5-13, HEAD
Changes since 1.2: +5 -3 lines
Changed DATA to /home/jsoc/pipeline

#! /bin/csh -f

set WORKFLOW_ROOT = /home/phil/jsoc/proj/workflow
set WORKFLOW_DATA = /home/jsoc/pipeline
set WFCODE = $WORKFLOW_ROOT

cd $WFCODE
set CTIMES = /home/wso/bin/_linux4/ctimes


set dsdshigh = `cat $WORKFLOW_DATA/gates/dsds.vwV/high`
set dsdshigh_t = `time_convert time=$dsdshigh`
@ dsdsblock = 6 * 3600
@ dsdshigh_t = $dsdshigh_t + $dsdsblock
set dsdshigh = `time_convert zone=TAI s=$dsdshigh_t`

set update = `maketicket.csh gate=mdi.vwV wantlow=$dsdshigh wanthigh=$dsdshigh action=2`
wait_ticket.csh $update

set mdihigh = `cat $WORKFLOW_DATA/gates/mdi.vwV/high`
set mdihigh_t = `time_convert time=$mdihigh`
@ mdihigh_t = $mdihigh_t + 60
set mdihigh = `time_convert zone=TAI s=$mdihigh_t`

maketicket.csh gate=mdi.vwV wantlow=$mdihigh wanthigh=$dsdshigh action=5
maketicket.csh gate=mdi.fdV wantlow=$mdihigh wanthigh=$dsdshigh action=5
maketicket.csh gate=mdi.fdM wantlow=$mdihigh wanthigh=$dsdshigh action=5
maketicket.csh gate=mdi.fdM_96m wantlow=$mdihigh wanthigh=$dsdshigh action=5


set synophigh = `cat $WORKFLOW_DATA/gates/mdi.Synop/high`

set fdMhigh = `$CTIMES -c $dsdshigh`
set crhigh = `echo $fdMhigh | sed -e 's/CT//' -e 's/:.*//'`

if ($crhigh > $synophigh) then
  @ cr = $synophigh + 1
  maketicket.csh gate=mdi.Synop wantlow=$cr wanthigh=$crhigh action=5
endif


Karen Tian
Powered by
ViewCVS 0.9.4