ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/workflow/scripts/stage-dsds_hourly_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 hour numbers from
8 # WANTLOW and WANTHIGH which are times
9
10 set echo
11
12 set WD = $cwd
13 if (!(-e ticket)) then
14 echo FAILURE in $0, NO ticket
15 echo Current Dir is $WD
16 exit 1
17 endif
18
19 foreach ATTR (TYPE WANTLOW WANTHIGH)
20 set ATTRVAL = `grep $ATTR ticket`
21 if ($#ATTRVAL) set $ATTRVAL
22 end
23 set WANTLOW_t = `time_convert time=$WANTLOW`
24 set WANTLOW = `time_convert zone=TAI s=$WANTLOW_t`
25 set WANTHIGH_t = `time_convert time=$WANTHIGH`
26 set WANTHIGH = `time_convert zone=TAI s=$WANTHIGH_t`
27
28 set SPECIAL = `grep SPECIAL ticket`
29 foreach SPEC ($SPECIAL)
30 if ($#SPEC) set $SPEC
31 end
32
33 # This cwd is the taskid dir. The product name can be found in the associated
34 # gate dir. Follow the tree back to the gate.
35
36 set gate = `cat ../../target`
37 set product = `cat $WORKFLOW_DATA/gates/$gate/product`
38
39 # FIX times for DSDS time_index
40 set LOW = `time_index time=$WANTLOW -t`
41 set FHOUR = `time_index time=$LOW -h`
42 set HIGH = `time_index time=$WANTHIGH -t`
43 set LHOUR = `time_index time=$HIGH -h`
44
45 show_info -p $product'['$FHOUR'-'$LHOUR']' -i > show_info.log
46
47 if ($?) then
48 echo $0 $* FAILED
49 exit 1
50 endif
51