(file) Return to add_hmi_nrt_repeat CVS log (file) (dir) Up to [Development] / JSOC / proj / workflow / add_scripts

File: [Development] / JSOC / proj / workflow / add_scripts / add_hmi_nrt_repeat (download)
Revision: 1.1, Wed Jan 5 20:40:20 2011 UTC (12 years, 1 month ago) by phil
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, Ver_8-0, Ver_7-1, Ver_7-0, Ver_6-4, Ver_6-3, Ver_6-2, Ver_6-1, Ver_6-0, Ver_5-14, Ver_5-13, HEAD
Initial checkin

#! /bin/csh -f

#
# WARNING - do not run this while gatekeeper is active

# script to add a repeating processing to make e.g. to run a task each day.

# This script is setup for HMI nrt data.

set WFDIR = $WORKFLOW_DATA
set WFCODE = $WORKFLOW_ROOT
cd $WFDIR

set NEWTASK = repeat_hmi_nrt
set NEWGATE = repeat_hmi_nrt

# remove prior test version

if (-e tasks/$NEWTASK) rm -rf tasks/$NEWTASK
if (-e gates/$NEWGATE) rm -rf gates/$NEWGATE

# finally make task 
$WFCODE/maketask.csh task=$NEWTASK manager=taskmanager.csh target=$NEWGATE maxrange=8640000 \
                command=scripts/start_hmi_nrt.csh

mkdir tasks/$NEWTASK/preconditions/hmi.lev1nrt
cat >tasks/$NEWTASK/preconditions/hmi.lev1nrt/prepare_ticket <<STOP
    set ACTION = 3
    set USEHIGH_t = \`time_convert time=\$USEHIGH\`
    @ USEHIGH_t = \$USEHIGH_t + 240
    set USEHIGH = \`time_convert s=\$USEHIGH_t zone=TAI\`
STOP


$WFCODE/makegate.csh gate_name=$NEWGATE product=none type=time key=NA \
	low=2010.03.24_00:00:00_TAI high=2010.03.24_00:00:00_TAI \
	actiontask=$NEWTASK statustask=scripts/status_clock.csh

# initialization ticket not needed. 


Karen Tian
Powered by
ViewCVS 0.9.4