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

File: [Development] / JSOC / proj / workflow / add_scripts / add_fd_M_96m (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
#
# make test gates and tasks for mdi.fd_M_96m_lev18 96 minute data at lev1.8
# If the tasks and gates directories exist only the test gates and tasks will be rebuilt.
# If the gates and tasks diretories are not present, they will be created.

if ($?WORKFLOW_ROOT) then
  set WFDIR = $WORKFLOW_DATA
  set WFCODE = $WORKFLOW_ROOT
else
  echo Need WORKFLOW_ROOT variable to be set.
  exit 1
endif

# Stop the gatekeeper in case it is running.

cd $WFDIR
rm -f Keep_running
while (-e GATEKEEPERBUSY)
  echo waiting for gatekeeper to quit.
  sleep 5
  end

cd $WFDIR/gates
rm -rf mdi.fdM_96m dsds.fdM_96m

cd $WFDIR/tasks
rm -rf update_mdi.fd_M_96m stage_dsds.fd_M_96m

# Make any user tasks

cd $WFDIR
$WFCODE/maketask.csh task=stage_dsds.fd_M_96m \
		manager=taskmanager.csh \
		target=dsds.fdM_96m \
		command=scripts/stage-dsds_daily_data.csh \
		maxrange=864000

$WFCODE/maketask.csh task=update_mdi.fd_M_96m \
		manager=taskmanager.csh \
		target=mdi.fdM_96m \
		command=scripts/update-mdi.fd_M_96m \
		# command=/home/phil/jsoc/proj/myproj/apps/fd_M_96m/update-mdi.fd_M_96m \
		maxrange=864000 \
		parallelOK=10
mkdir                   tasks/update_mdi.fd_M_96m/preconditions/dsds.fdM_96m
echo "set ACTION = 5" > tasks/update_mdi.fd_M_96m/preconditions/dsds.fdM_96m/prepare_ticket

# Now make any user gates.

cd $WFDIR
# use type time and let the status and action tasks convert to DSDS seriesnumbers
$WFCODE/makegate.csh gate_name=dsds.fdM_96m \
		 product=dsds.mdi__lev1_8__fd_M_96m_01d \
		 type=time \
		 key=snum \
		 project=MDI \
		 actiontask=stage_dsds.fd_M_96m \
		 statustask=scripts/status-dsds_daily.csh

$WFCODE/makegate.csh gate_name=mdi.fdM_96m \
		 product=mdi.fd_M_96m_lev18 \
		 type=time \
		 key=T_REC \
		 project=MDI \
		 actiontask=update_mdi.fd_M_96m \
		 statustask=scripts/status-general.csh

# Now, to get things started, initialize the new gates.  this is not strictly necessary if the nextupdate
# times are defaulted to now.

cd $WFDIR
$WFCODE/maketicket.csh  gate=mdi.fdM_96m action=6 wantlow=NaN wanthigh=NaN
$WFCODE/maketicket.csh  gate=dsds.fdM_96m  action=6 wantlow=NaN wanthigh=NaN


Karen Tian
Powered by
ViewCVS 0.9.4