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

Поисковые слова: флуоресценция
Python: module create_contacts
 
 
create_contacts (version 14.05.08)
index
create_contacts.py

PURPOSE --
Run the PASS AVTUT tool.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
Initial implementation  9/9/08
Modified for PASS build 33.30 3/30/09
Allow for user input tdrs.dat file. 5/7/09
Add namelist editing through GUI. drc 6/10/09 
Update for PASS build 33.40. drc 9/24/09
Modified to support anal_views run with MS generation. drc 10/15/09
Updated for PASS build 33.80. drc 2/14/11
Updated for PASS build 33.92. drc 11/14/13
Updated for PASS build 33.95. drc 5/8/14

 
Modules
       
avtut_namelist_editor
configure_util
get_web_tut
namelist_util
os
pass_util
spss_sys_util
spst_getopt
sys
time_util

 
Classes
       
pass_product.pass_product(configure_util.pickled_product)
avtut

 
class avtut(pass_product.pass_product)
    A class for the AVTUT tool.
 
 
Method resolution order:
avtut
pass_product.pass_product
configure_util.pickled_product

Methods defined here:
__init__(self, ms=None, tut_file='', tdrs_dat=None)
The input parameters are an ms object and the last
corresponding cl object.
create_namelist(self)
Create the namelist necessary for running the AVTUT program.
 
Returns the path to the namelist.
create_script(self)
Create the script to run AVTUT
get_aet_file(self)
get_cin_file(self)
get_ism_file(self)
get_namelist(self)
get_oev_file(self)
get_span(self)
Get time span of run sms.
get_top_level(self)
get_tut_file_path(self)
set_aet_file(self, aet_file)
set_ism_file(self, ism_file)
set_oev_file(self, oev_file)
set_top_level(self, bool)
set_tut_file_path(self, tut_file_path)

Methods inherited from pass_product.pass_product:
__repr__(self)
archive(self, archive_type)
Create a zip or bck file.
get_ccs_product(self)
returns ccs product transfer object
get_ccs_transfer_time(self)
Return the ccs transfer time.
get_config_file(self)
Return the path to the config file.
get_namelist_template(self)
get_output_directory(self)
Get the output directory.
get_output_file(self, extension)
Given a file extension (the part after the dot), return a list of
files with that extension located in the output directory.
get_pass_archive_glob_list(self)
returns a list of files to be archived and or transfered to
pass test system on spunix
get_rsh_logfile(self)
Return the path to the log file for rsh output.
get_run_name(self)
Get the run name this product is associated with.
get_run_time(self)
gets the run time
get_run_type(self)
gets run type (test,flight)
get_runonvms(self)
returns runonvms flag
get_script_obj(self)
get_software_version(self)
Return the software version to be used when running these products.
get_sssp1_transfer_time(self)
Return the SSSP/SSSP1 transfer time.
remove(self, which_prods='o')
Delete the current set of products.
 
'which_prods' must one or more characters from 'oalsnc'.
 
Depending on 'which_prods', the following items will be deleted:
   o = output directory (and everything it contains)
   l = log file
   s = script file
   n = namelist
   c = config file
   a = all of the above
run(self, verbose=0)
Generate this product.
run_prep(self)
Make sure whatever needs to be done before running
this product is done.
send_ews(self, node=1)
Send products to the Engineering Workstation Data Store.
send_sssp1(self)
send products to sssp
set_ccs_product(self, xfer_type='ops', string_list=['I', 'J', 'K'], pnm_directory=None)
sets/creates ccs product transfer object
set_config_file(self, config_file)
Set the config file to the input file name.
set_namelist_template(self, file)
set_output_directory(self, directory=None)
Set the output directory and also the scratch directory.
set_root_output_path(self, path)
top level of output
expected to be:
               '/vms/spst_ms/' for ops run
               '/vms/spst_ms/<accountname>/<date>/' for test run.
set_run_name(self, run_name)
set the run name this product is associated with.
set_run_time(self, runtime)
sets the run time
set_run_type(self, run_type)
set run_type parameter to either test,or flight
set_runonvms(self, runonvms=False)
set runonvms to true of false
set_script_created(self, val)
set_software_version(self, ver)
set software version for running pass
set_sssp1_transfer_time(self, transfer_time=2016.099:09:45:10)
Set the SSSP/SSSP1 transfer time.
submit(self, verbose=0)
Submit a run of this product to a batch queue.

Methods inherited from configure_util.pickled_product:
configure_pickle(self, pickle_directory='/data/scheduling/spss_flight_data/pass/pickles', new_pickle_name=None, verbose=False)
configures product to pickle file.
copy(self)
return a copy of self with current create time
get_comment(self)
returns the comment line
get_create_time(self)
returns create time
get_pickle_path(self)
get_type(self)
returns the product type
report(self)
print out a detailed report of objects information
overide to add more detail if needed.
report_sum(self)
print out summary of objects information.
set_comment(self, comment)
sets product comment line
set_create_time(self)
sets create time
set_pickle_path(self, path)
set_product_type(self, product_type)
product type must be a pickle type
set_span(self, t1=None, t2=None)
sets the time span for which this product is valid.
should be overiden by inheriting class if needed.
validate(self)
checks all configured files in product for existence
and returns false if any data is missing.
 
should be overiden by inheriting class if needed.

 
Functions
       
run(*args)
Run AVTUT
 
Usage:
do create_contacts <ms_run_name> [-namelist=<avtut_namelist_path]
                                 [-software_version=old|ops|new]
                                 [-tdrs=tde,tdw,...]
                                 [-tut_file=<tut_file_path>]
                                 [-sched=<tdrs_dat_file_path>]
                                 [-gui]
 
If -tut_file is given, this TUT file will be used.  Otherwise, get_web_tut.py will be used
to get a TUT file.  The -tdrs option is passed along to get_web_tut.  If a tut file is
provided, then -tdrs has no effect.  Use -namelist to specify an AVTUT namelist.  Otherwise,
the appropriate default namelist from the PASS software area will be used.
 
Use -sched option to specify the path to a tdrs.dat file.  Otherwise the same tdrs.dat file
will be used as the MS run.
 
Use -gui to start the AVTUT GUI for editing AVTUT namelist parameters.

 
Data
        HAS_GUI = True
__version__ = '14.05.08'