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

File: [Development] / JSOC / proj / workflow / add_scripts / add_hmi_daily_repeat (download)
Revision: 1.2, Fri Jan 7 20:43:39 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
Changes since 1.1: +3 -6 lines
Fix

#! /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 LOS data.

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

set NEWTASK = repeat_hmi_daily
set NEWGATE = repeat_hmi_daily

# 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=86400 \
                command=scripts/start_hmi_daily.csh

mkdir tasks/$NEWTASK/precondition/hmi.lev1_wait_FSN
cat >tasks/$NEWTASK/preconditions/hmi.lev1_wait_FSN/prepare_ticket <<STOP
    set ACTION = 3
STOP

mkdir tasks/$NEWTASK/preconditions/hmi.cosmic_rays
cat >tasks/$NEWTASK/preconditions/hmi.cosmic_rays/prepare_ticket <<STOP
    set ACTION = 3
    set USEHIGH_t = \`time_convert time=\$USEHIGH\`
    @ USEHIGH_t = \$USEHIGH_t - 15
    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