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

Поисковые слова: п п п п п п п п п п п п п п
Python: module metric_cycle_monthly
 
 
metric_cycle_monthly (version 15.05.21)
index
metric_cycle_monthly.py

Checks for CYCLE  monthly metric files, processes them and publishes them
 
TITLE:      metric_cycle_monthly.py
DEVELOPER:  Alan Patterson, 30-Apr-2008
 
PURPOSE:    The tool checks for the existence of CYCLE monthly metric data,
             retrieves and processes them into updated tables (text and
             Excel) and plots (cycle completion and gto)
 
USAGE:      do metric_cycle_monthly             [-verbose]
                                              [-nodelete]
                                              [-nocleanup]
 
             where: -verbose     causes informational messages to appear.
 
 RETURNS:   Nothing
 
 MOD HISTORY:
     o Python 2.5                             app 07/30/09
     o Allow instr in GTO plot, more colors   app 08/31/10
     o Fix typo                               app 09/01/10
     o Removed GTO data (its done!)           app 11/03/14
     o code cleanup                           drc 04/30/15
     o fix legend code                        drc 05/21/15
     o change FTP indir to avoid errors       jef 07/14/15

 
Modules
       
matplotlib
metplot
os
spss_sys_util
spst_getopt
sys
time_util

 
Functions
       
lineplotpairs(xy, yc, ylw)
line plot routine
xy        - list of (X,Y) axis variable pairs
yc        - color specifier; None or a list of color values
                (one per y variable)
ylw       - line width specifier; None or a list of width values
                (one per y variable)
lineplotpairs2(xy, yc, ylw, markers)
line plot routine
xy        - list of (X,Y) axis variable pairs
yc        - color specifier; None or a list of color values
                (one per y variable)
ylw       - line width specifier; None or a list of width values
                (one per y variable)
markers   - symbols
lineplotpairs3(xy, yc, ylw, markers)
line plot routine
xy        - list of (X,Y) axis variable pairs
yc        - color specifier; None or a list of color values
                (one per y variable)
ylw       - line width specifier; None or a list of width values
                (one per y variable)
markers   - symbols
make_activecycle_plot(cycletable, outplotfil1, cflag)
Produce Active cycle history plot
cycletable     is the table from an input metric file
outplotfil1     is the active cycle plot file name
make_gto_plot(cycletable, outplotfil, cflag, gto_instr)
Produce Active cycle history plot
cycletable     is the table from an input metric file
outplotfil1     is the active cycle plot file name
cflag          is
gto_instr       is name of GTO instrument
make_stripped_table(table)
run(*args)
Checks for monthly cycle status 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_cycle_monthly [-verbose] [-noupdate] [-nodelete] [-nocleanup]
 
            where      -verbose       causes information messages
                       -noupdate      prevents modifying the tables
                       -nodelete      prevents deleting of input files
                       -nocleanup     prevents deleting of output files

 
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': 'CYSTAT_MN_in', 'infiles': ['completion.txt'], 'name': 'Monthly Cycle', 'outdir': 'CYSTAT_out', 'outfiles': ['activecycle1.txt', 'activecycle.xls', 'activecycle.pdf'], 'plotext': '.pdf', 'table1': 'activecycle1.csv', 'table2': 'gto_summary1.csv'}
MONTHBACK1 = 17
MONTHBACK2 = 6
NOFILESTRING = 'No files in directory'
TABLEDIR = '/data/scheduling/spss_flight_data/planinst/metrics/archive'
USER = 'anonymous'
WORD = 'planinst@stsci.edu'
__author__ = 'Alan Patterson'
__version__ = '15.05.21'

 
Author
        Alan Patterson