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

Поисковые слова: п п п п п п п п п п п п
Python: module extrap_orb
 
 
extrap_orb (version 3/31/09)
index
extrap_orb.py

PURPOSE --
To create an extrapolated (usually linear) orbit file for test-scheduling
tricky proposals and servicing missions in the correct timeframe.  The 
create time is set to a time on day 1990.001 so that it doesn't conflict 
with the 10-week, flight orbit creation times. 
 
DEVELOPER --
D. Jack MacConnell
 
MODIFICATION HISTORY --
Original EXTRAP_ORB by H. Preston and B. Mitchell Mar. 1993
Converted to Python and enhanced by J. MacConnell & D. Chance May 2001
Changed the name of the MOSS file from moss_1_year_orbit.dat to
moss_1_year_orbit.dat_1.   D. Chance 8/27/02
Mods for new TDRSW - M. Reinhart 5/4/04
Modified to work with any satellite ids. D Chance 2/28/05
Modified for new file_type paramter in orbfile -create (SPSS build 49.7)
 D. Chance 1/15/09
Mods for SPSS 49.8.  MDR 3/31/09

 
Modules
       
exceptions
os
re
shutil
spss_sys_util
spst_getopt
stpydb
string
time_util

 
Classes
       
exceptions.RuntimeError(exceptions.StandardError)
FailedOrbfileCreate

 
class FailedOrbfileCreate(exceptions.RuntimeError)
    
Method resolution order:
FailedOrbfileCreate
exceptions.RuntimeError
exceptions.StandardError
exceptions.Exception
exceptions.BaseException
__builtin__.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from exceptions.RuntimeError:
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature

Data and other attributes inherited from exceptions.RuntimeError:
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)
__unicode__(...)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message

 
Functions
       
default_end_time(start_time)
Find the end time for the extrap. orbit (1 yr. after start in STANDARD
case).
default_extrap_fit()
Find the latest extrapolated fit name from the PMDB.
default_start_time()
Find the start time for the extrap. orbit from the PMDB.
default_tdrs(sat_id)
Find the latest TDRS fit name from the PMDB for a given
satellite id.
fit_name_check(extrap_fit)
Print a warning if the extrapolated fit name entered is not standard.
get_sat_id(start_time, end_time, location)
Find the TDRS satilite number associated with a particular
location (E or W) and a paticular time period.
orb_check(orb_file)
Print a warning if the orbit file name entered is not standard.
run(run_type='', *args)
do extrap_orb [sp] [<-extrap_fit> <-start> <-end> <-tefit> <-twfit> <-orb_file>]
where <-extrap_fit> = name of extrapolated HST fit (format: SX_yydddv)
      <-start> = start time of extrapolated orbfile (yyyy.ddd:hh:mm:ss)
      <-end>   =   end time of extrapolated orbfile (yyyy.ddd:hh:mm:ss)
      <-tefit> = TDRS E fitname (format: TTDnyydddv)
      <-twfit> = TDRS W fitname (format: TTDnyydddv)
      <-orb_file> = the UNIQUE orbit file name (format: ORyydddXv)
                    (v=alphabetic version)
 
At initiation, one is prompted whether it is a STANDARD (done every two 
weeks for a one-year interval) or a SPECIAL run.  For the STANDARD run,
hitting <return> uses values in the PMDB for the input parameters and
requires no further input. The SPECIAL run permits input from the command
line or from the PMDB as default in any combination and order.  In this 
case, the only parameter without a default is <-orb_file>.
tdrs_check(sat_id, tdrs)
Print a warning if the TDRS fit name entered is not standard.
time_check(time)
Check the input time, return an spss_time object.
time_order(start_time, end_time)
Check that the start time is before the end time.

 
Data
        __version__ = '3/31/09'
dbconn = <stpydb.STSybase object>
optlist = ['extrap_fit=', 'start_time=', 'end_time=', 'tefit=', 'twfit=', 'orb_file=']
spss_db = 'spss'