-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_mdi.csh
More file actions
40 lines (28 loc) · 1.26 KB
/
update_mdi.csh
File metadata and controls
40 lines (28 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /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