ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/scripts/stage-dsds_daily_data.csh
Revision: 1.2
Committed: Mon Jan 10 21:01:43 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
Changes since 1.1: +1 -1 lines
Log Message:
misc relocation patches, turn off image making in daily hmi

File Contents

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