Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/metric_snap_weekly.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Mon Apr 11 05:14:41 2016
Кодировка:

Поисковые слова: п п п п п п п п п п
Python: module metric_snap_weekly
 
 
metric_snap_weekly (version 09/02/10)
index
metric_snap_weekly.py

Checks for SNAP metric files, processes and publishes them
 
TITLE:      metric_snap_weekly.py
DEVELOPER:  Alan Patterson, 19-Mar-2008
 
PURPOSE:    The tool checks for the existence of SNAP metric data,
             retrieves and processes it into updated tables (text and
             Excel) and plots
 
USAGE:      do metric_snap_weekly             [-verbose]
                                              [-nodelete]
                                              [-nocleanup]
 
             where: -verbose     causes informational messages to appear.
                    -nodelete    prevents deletion of the input files
                                     from the FTP input location
                    -nocleanup   prevents deletion of the created output
                                     files from the local area even when
                                     the products are successfully FTPed
                                     to the output location
 
 RETURNS:   Nothing
 
 MOD HISTORY:
     o force PDF backend                   app 041408
     o add metric name                     app 060908
     o updated bar_plot1 call              app 061908
     o add ACS/WFC3 instrument combo       app 090210
     o code cleanup                        drc 050115

 
Modules
       
matplotlib
metplot
os
spss_sys_util
spst_getopt
sys
time_util

 
Functions
       
arange(...)
arange([start,] stop[, step,], dtype=None)
 
Return evenly spaced values within a given interval.
 
Values are generated within the half-open interval ``[start, stop)``
(in other words, the interval including `start` but excluding `stop`).
For integer arguments the function is equivalent to the Python built-in
`range <http://docs.python.org/lib/built-in-funcs.html>`_ function,
but returns an ndarray rather than a list.
 
When using a non-integer step, such as 0.1, the results will often not
be consistent.  It is better to use ``linspace`` for these cases.
 
Parameters
----------
start : number, optional
    Start of interval.  The interval includes this value.  The default
    start value is 0.
stop : number
    End of interval.  The interval does not include this value, except
    in some cases where `step` is not an integer and floating point
    round-off affects the length of `out`.
step : number, optional
    Spacing between values.  For any output `out`, this is the distance
    between two adjacent values, ``out[i+1] - out[i]``.  The default
    step size is 1.  If `step` is specified, `start` must also be given.
dtype : dtype
    The type of the output array.  If `dtype` is not given, infer the data
    type from the other input arguments.
 
Returns
-------
arange : ndarray
    Array of evenly spaced values.
 
    For floating point arguments, the length of the result is
    ``ceil((stop - start)/step)``.  Because of floating point overflow,
    this rule may result in the last element of `out` being greater
    than `stop`.
 
See Also
--------
linspace : Evenly spaced numbers with careful handling of endpoints.
ogrid: Arrays of evenly spaced numbers in N-dimensions.
mgrid: Grid-shaped arrays of evenly spaced numbers in N-dimensions.
 
Examples
--------
>>> np.arange(3)
array([0, 1, 2])
>>> np.arange(3.0)
array([ 0.,  1.,  2.])
>>> np.arange(3,7)
array([3, 4, 5, 6])
>>> np.arange(3,7,2)
array([3, 5])
get_snap_exec_table(snapweek)
make_snap_comp_plot(snapcomp, outplotfil, cflag)
Produce Snap Completion Bar Chart
snapcomp       is the table from an input metric file
                        snap_comp.txt
outplotfil     is the plot file to be produced
make_snap_exec_plot(snapweek, outplotfile, cflag)
run(*args)
Checks for SNAP metric data in input area, retrieves it, processes it
and publishes results to output area.
    Tables are updated (text and Excel) and plots are produced.
 
Usage:
    do metric_snap_weekly [-verbose]  [-nodelete]  [-nocleanup]
                          [-noupdate]
 
            where: -verbose     causes informational messages to appear.
                   -noupdate    prevents modifying the tables
                   -nodelete    prevents deletion of the input files
                                    from the FTP input location
                   -nocleanup   prevents deletion of the created output
                                    files from the local area even when
                                    the products are successfully FTPed
                                    to the output location

 
Data
        ALERTADDR = ['jferrara@stsci.edu', 'workman@stsci.edu']
BASE_DIR = 'inside-access/metrics'
FTPDICT = {'base_dir': 'inside-access/metrics', 'host': 'ftp.stsci.edu', 'nofilestring': 'No files in directory', 'user': 'anonymous', 'word': 'planinst@stsci.edu'}
HOST = 'ftp.stsci.edu'
METRIC_DICT = {'indir': 'SNAP_in', 'infiles': ['snap_comp.txt', 'snap_weekly.txt', 'snap_weeklycount.txt'], 'name': 'SNAP weekly', 'outdir': 'SNAP_out', 'outfiles': ['snap_execution.txt', 'snap_execution.xls', 'snap_weekly.txt', 'snap_comp.txt', 'snap_comp.xls', 'snap_comp.pdf', 'snap_count.pdf'], 'plotext': '.pdf', 'table': 'snap_execution.csv'}
NOFILESTRING = 'No files in directory'
TABLEDIR = '/data/scheduling/spss_flight_data/planinst/metrics/archive'
USER = 'anonymous'
WORD = 'planinst@stsci.edu'
__author__ = 'Alan Patterson'
__version__ = '09/02/10'

 
Author
        Alan Patterson