#!/usr/bin/env python
#\if DOXYGEN_IGNORE ############################################################
# #
# Copyright (C) 2016 by John Spitzak #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the #
# Free Software Foundation, Inc., #
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #
# #
#\endif ########################################################################
################################################################################
#\defgroup difxruncalc DiFXrunCalc
#
#\brief Run the calc process on a job or group of jobs on the DiFX server.
#
# Usage: DiFXrunCalc [options] directory
#
# DiFXrunCalc will run the "calc" process on a group of jobs in a single
# specified directory on the DiFX server. The jobs must have .input and .calc
# files associated with them, and may or may not have .im files as well (the
# products of previous calc runs which will be over written). By default all
# jobs in the directory will have calc run on them but a subset may be selected
# by specifying job names. The calc process is calcif2, but an alternative
# can be used.
#
# Command Line Arguments
#
#
-c, --calc APP | Run the given calc application instead of the default # calcif2. # |
-D, --difx VERSION | Run using a specific DiFX version. If not specified # the value of the DIFX_VERSION environment variable will # be used. Failing that, "DIFX-DEVEL" will be used. # |
-h, --help | Print help information and quit. # |
-H, --hostname NAME | Use NAME as the host of the DiFX Server program. # Default is to use DIFX_CONTROL_HOST environment variable. # |
-j, --jobs JOBNAMES | Run the given calc application on the specified job(s) # within the given directory. This argument can contain # wildcard characters recognized by an ls command. # Job names do not contain any file extensions. # |
-P, --port PORT | Use PORT as the TCP port to communicated with the DiFX Server. # Default is to use DIFX_CONTROL_PORT environment variable. # |
-t, --timeout SEC | Use SEC seconds as the timeout value for each job. This is the # amount of time DiFXrun will wait before it gives up on a # "silent" (i.e. no messages received from) job and declares it # non-responsive. Default value is 300.0. # |