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

Confirms that the current schedule incorporates the most recent replaces
     and/or deletes
 
TITLE:      check_snas_replaces.py
DEVELOPER:  Alan Patterson, 11-Oct-2012
 
PURPOSE:    The tool checks the most recent schedule against previous
             replaces and deletes.  
 
USAGE:      do check_snas_replaces <MS_name>  [-select_sched=<n>]
 
             where: <MS_name> is the MS run name.
                     <n>      is the number of the TDRS schedule
                                (see the last 3 chars of the file name)
                                [default is the last one i.e. -1]
 
 RETURNS:   Nothing
 
 MOD HISTORY:
    o Conversion from check_ups_replaces.py              app 10/11/12
    o Code cleanup; adapted for checklist use            drc  2/11/15
    o exit cleanly when no sars are found                drc  3/09/15

 
Modules
       
os
sms_util
spss_sys_util
spst_getopt
sys
tdrs_util
time_util

 
Functions
       
get_ncclist(msrunname)
For a given msrunname, identifies the SAR submission files to the NCC
Returns a time ordered list of
    (SAR subdirectory, timestamp, RSV file, NCC schedule)
 
There will be just the *.rsv file for all subdirectories and this will
identify the NCC schedule used
get_nccsched(rsvfile)
Find the NCC schedule file in the RSV file header
get_sarlist(msrunname)
For a given msrunname, identifies the SAR submission files to the NCC
Returns a time ordered list of
    (SAR subdirectory, timestamp, list of delete/replace request files)
 
The list of delete/replace request files can contain .ssr and .sdr files.  There will
normally be just the *.ssr file for all subdirectories except one which
will contain the *.sdr file in addition
get_sch_list(schfile)
Returns a list of TDRS schedules with names similar to the given one
Each entry is (file creation time, filename)
get_tdrs_lis_name(msrunname)
Given the msrunname returns a list of the TDRS schedules created
for the PASS runs
Returns a list of
   (config file date string [yyyydddhhmm], TDRS schedule base name)
get_tdrssch(config)
Given the config file
Returns    status, TDRS schedule file name
 
If a file name is found then SUCCESS and the file name are returned
Otherwise NOT SUCCESS and an empty string are returned
run(*args)
The tool checks the most recent TDRS schedule processed by SCHEDMAN
 against previous replace and delete submissions.
 
Usage:      do check_snas_replaces <MS_name>
 
             where: <MS_name> is the MS run name.

 
Data
        PASSOPS = '/data/scheduling/spss_flight_data/pass//'
__author__ = 'Alan Patterson'
__version__ = '15.03.09'

 
Author
        Alan Patterson