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

PURPOSE --
A module for dealing with exposures.
 
The exposure class here was previously in gen_otr.py.
 
DEVELOPER --
Don Chance and Danny Jones
 
MODIFICATION HISTORY --
Initial implementaion 10/05/04
add functions to get opmode, config; check for existance of SPSS_DB
added is_parallel function. dc 3/1/05
fix bug introduced with changes to proposal object.  dc 3/15/05
add get_qesiparms. dc  9/29/08
fix print_otr when no PI exists dc 1/15/13
add method to get qexposure data. dc 2/3/14
Add special case for interpretation of spectral elements for COS.  mdr 2/5/14

 
Modules
       
spss_sys_util
stpydb
string
time_util

 
Classes
       
exposure

 
class exposure
    Class representing an exposure.
 
  Methods defined here:
__init__(self, dict)
Constructor for the exposure class.
The "dict" parameter is the result of a query to QELOGSHEET placed in
a dictionary.
__repr__(self)
additional_ap_and_sp(self, format_str)
Generate lines for the 2nd and subsequent apertures and spec-els.
Returns string containing the lines to be appended to the OTR.
get_config(self)
get_obsrec(self)
Retrieve the observation record for an exposure from SPST database.
Returns a 2-tuple:
    tuple[0] is a TIME_UTIL.window object containing the estimated
       time where the exposure will execute.
    tuple[1] is a string containing the observation number.
    If the observation record does not exist, both tuple elements
    will be set None.
get_opmode(self)
get_qesiparms(self)
Return the qesiparm name/value pairs as a dictionary.
get_qexposure_data(self)
Add qexposure data to this object
is_coronographic(self)
is_parallel(self)
print_otr(self, otr_type, su_info, prop_info)
Generate lines for exposure in POTR or Final OTR.
Returns string containing the lines to be appended to the OTR.
special_apertures_and_spectral_elements(self)
Remove subset of apertures and spec-els depending on instrument.
No values are returned, but the lists represented by the apertures
and spectral_elements attributes of the object may be modified.

Data and other attributes defined here:
assist_db = 'assist'
spss_db = 'spss'

 
Data
        __version__ = '14.02.05'