Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/metric_archive_requests_monthly.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Mon Apr 11 07:42:54 2016
Кодировка:
Python: module metric_archive_requests_monthly
 
 
metric_archive_requests_monthly (version 15.04.29)
index
metric_archive_requests_monthly.py

Checks for archive requests monthly metric files, processes them and
              publishes them
 
TITLE:      metric_archive_req_monthly.py
DEVELOPER:  Alan Patterson, 17-Jun-2008
 
PURPOSE:    The tool checks for the existence of archive request
             monthly metric data, retrieves and processes it into updated
             tables (text and Excel) and plots
 
USAGE:      do metric_archive_req_monthly    [-verbose]
                                              [-nodelete]
                                              [-nocleanup]
 
             where: -verbose     causes informational messages to appear.
 
 RETURNS:   Nothing
 
 MOD HISTORY:
   o Fix bugs                               app   06/23/08
   o Fix typo                               app   06/25/08
   o code cleanup                           drc   04/29/15

 
Modules
       
matplotlib
metplot
os
spss_sys_util
spst_getopt
sys
time_util

 
Functions
       
make_proc_plot2(table, ind, xlab, ylab, head, outplotfil, cflag)
Produce Plot of OTFR Processing time
table          table of data
ind            index to first column of data
xlab           x axis label
ylab           y axis label
head           plot title
outplotfil     is the plot file to be produced
cflag
run(*args)
Checks for the existence of archive request monthly metric data
in an input area, retrieves it, processes it and publishes results
to an output area.
    Tables are updated (text and Excel) and plots are produced.
 
Usage:
    do metric_archive_requests_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'
COLLIST = ['#9370DB', '#8B4513', '#FFFFE0', '#ADD8E6', '#8DBC8F', '#7CFC00', '#5F9EA0', '#FF4500']
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': 'AR_REQUESTS_in', 'infiles': ['requests.txt', 'requests.xls'], 'name': 'Monthly Archive Request', 'outdir': 'AR_REQUESTS_out', 'outfiles': ['requests.txt', 'requests.xls', 'requests.pdf', 'gigabytes.pdf', 'datasets.pdf'], 'plotext': '.pdf', 'table': 'requests.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__ = '15.04.29'

 
Author
        Alan Patterson