ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/add_scripts/add_fd_M
Revision: 1.1
Committed: Wed Jan 5 20:40:20 2011 UTC (12 years, 8 months ago) by phil
Branch: MAIN
CVS Tags: Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_9-1, Ver_5-14, Ver_5-13, Ver_LATEST, Ver_9-3, Ver_9-41, Ver_9-2, Ver_8-8, Ver_8-2, Ver_8-3, Ver_8-0, Ver_8-1, Ver_8-6, Ver_8-7, Ver_8-4, Ver_8-5, Ver_7-1, Ver_7-0, Ver_9-5, Ver_9-4, Ver_8-10, Ver_8-11, Ver_8-12, Ver_9-0, HEAD
Log Message:
Initial checkin

File Contents

# Content
1 #! /bin/csh -f
2 #
3 # make test gates and tasks for mdi.fd_M one minute data at lev1.8
4 # If the tasks and gates directories exist only the test gates and tasks will be rebuilt.
5 # If the gates and tasks diretories are not present, they will be created.
6
7 if ($?WORKFLOW_ROOT) then
8 set WFDIR = $WORKFLOW_DATA
9 set WFCODE = $WORKFLOW_ROOT
10 else
11 echo Need WORKFLOW_ROOT variable to be set.
12 exit 1
13 endif
14
15 # Stop the gatekeeper in case it is running.
16
17 cd $WFDIR
18 rm -f Keep_running
19 while (-e GATEKEEPERBUSY)
20 echo waiting for gatekeeper to quit.
21 sleep 5
22 end
23
24 cd $WFDIR/gates
25 rm -rf mdi.fdM dsds.fdM
26
27 cd $WFDIR/tasks
28 rm -rf update_mdi.fd_M stage_dsds.fd_M
29
30 # Make any user tasks
31
32 cd $WFDIR
33 $WFCODE/maketask.csh task=update_mdi.fd_M \
34 manager=taskmanager.csh \
35 target=mdi.fdM \
36 command=scripts/update-mdi.fd_M \
37 maxrange=864000 \
38 parallelOK=5
39 set PRECOND = tasks/update_mdi.fd_M/preconditions/dsds.fdM
40 mkdir $PRECOND
41 echo "set ACTION = 5" > $PRECOND/prepare_ticket
42
43 $WFCODE/maketask.csh task=stage_dsds.fd_M \
44 manager=taskmanager.csh \
45 target=dsds.fdM \
46 command=scripts/stage-dsds_hourly_data.csh \
47 maxrange=864000
48
49 # Now make any user gates.
50
51 cd $WFDIR
52 # use type time and let the status and action tasks convert to DSDS seriesnumbers
53 $WFCODE/makegate.csh gate_name=dsds.fdM \
54 product=dsds.mdi__lev1_8__fd_M_01h \
55 type=time \
56 key=snum \
57 project=MDI \
58 actiontask=stage_dsds.fd_M \
59 statustask=scripts/status-dsds_hourly.csh
60
61 $WFCODE/makegate.csh gate_name=mdi.fdM \
62 product=mdi.fd_M_lev18 \
63 type=time \
64 key=T_REC \
65 project=MDI \
66 actiontask=update_mdi.fd_M \
67 statustask=scripts/status-general.csh
68
69 # Now, to get things started, initialize the new gates. this is not strictly necessary if the nextupdate
70 # times are defaulted to now.
71
72 cd $WFDIR
73 $WFCODE/maketicket.csh gate=mdi.fdM action=6 wantlow=NaN wanthigh=NaN
74 $WFCODE/maketicket.csh gate=dsds.fdM action=6 wantlow=NaN wanthigh=NaN
75