ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/scripts/stage-dsds_sixhour_data.csh
Revision: 1.1
Committed: Sun Jan 2 22:13:25 2011 UTC (12 years, 8 months ago) by phil
Content type: application/x-csh
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 commit, copied from ~phil/workflow/scripts

File Contents

# Content
1 #! /bin/csh -f
2
3 set WFDIR = $WORKFLOW_DATA
4
5 echo ACTIONTASK starting $0 $*
6
7 set echo
8
9 # script to stage dsds data based on DSDS six hour numbers from
10 # WANTLOW and WANTHIGH which are times
11
12
13 # get calling parameters from task instance directory
14
15 set WD = $cwd
16 if (!(-e ticket)) then
17 echo FAILURE in $0, NO ticket
18 echo Current Dir is $WD
19 exit 1
20 endif
21
22 foreach ATTR (TYPE WANTLOW WANTHIGH)
23 set ATTRVAL = `grep $ATTR ticket`
24 if ($#ATTRVAL) set $ATTRVAL
25 end
26 set WANTLOW_t = `time_convert time=$WANTLOW`
27 set WANTLOW = `time_convert zone=TAI s=$WANTLOW_t`
28 set WANTHIGH_t = `time_convert time=$WANTHIGH`
29 set WANTHIGH = `time_convert zone=TAI s=$WANTHIGH_t`
30
31 set SPECIAL = `grep SPECIAL ticket`
32 foreach SPEC ($SPECIAL)
33 if ($#SPEC) set $SPEC
34 end
35
36 # This cwd is the taskid dir. The product name can be found in the associated
37 # gate dir. Follow the tree back to the gate.
38
39 set gate = `cat ../../target`
40 set product = `cat $WFDIR/gates/$gate/product`
41
42 # FIX times for DSDS time_index
43 set LOW = `time_index time=$WANTLOW -t`
44 set FSIX = `time_index time=$LOW -6`
45 set HIGH = `time_index time=$WANTHIGH -t`
46 set LSIX = `time_index time=$HIGH -6`
47
48 show_info -p $product'['$FSIX'-'$LSIX']' -i > show_info.log
49
50 if ($?) then
51 echo $0 $* FAILED
52 exit 1
53 endif
54