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

PURPOSE --
A module for dealing with orbit files.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
Initial implemetation 09/12/00
Fixed constructor so it works when the orbit file is not on disk. drc
   10/23/00
Added method for computing the beta angle.   5/20/05 mdr
Updated for move to python 2.4.1 8/17/05 drc
Add function to get the latest orbit file.  7/12/07 drc
Updated for DB changes with SPSS 49.7. 1/15/09 drc
Fix get_latest_extrap_orbit_file 8/25/09 drc

 
Modules
       
re
spss_sys_util
stpydb
string
time_util

 
Classes
       
orbit_file

 
class orbit_file
    A class dealing with orbit files.
 
  Methods defined here:
__getattr__(self, name)
__init__(self, name, ver=1)
Orbit file object constructor
 
If the 'name' parameter contains alphanumeric characters followed
by a colon followed by a number, part before the colon is
interpreted as the orbit file name and the part after the colon as
the orbit file version.  The 'ver' parameter will be ignored if a
version is given in 'name'.
 
If the 'name' parameter does not contain a colon, then 'name' will
be the orbit file name and the version number will be the 'ver'
parameter with a default of 1.
__nonzero__(self)
__repr__(self)
The string representation of an orbit file object.
 
Returns the orbit file name and version.
compute_beta_angle(self, t)
Returns the orbit beta angle for the given time
Note: though this routine will return an answer that is likely reasonable,
      the resulting beta angle should only be relied upon if t is within
      the timespan of the orbit file.
exists(self)
Check for the existance of the orbit file.
 
Checks the SPSSORB directory for the existance of the proper
.dat file.  Returns TRUE (1) if the file is found, FALSE (0) otherwise.
get_fitdata(self)
Populate 'fitdata' with a dictionary containing all the information
from the relatation fit_cat relevant to this orbit file.
get_north_point_times(self, begin_time, end_time, step_size=3600)
Return a list of times when the RA of north point HST's orbit is
the same as the RA of the sun.
get_orbitdata(self)
Populate 'orbitdata' with a dictionary containing all the information
from the relation orbit_file_c relevant to this orbit file.
get_period(self)
Returns the orbital period as a delta_time object.
 
The orbital period is derived from the g2 field in the fit_cat relation.
get_ra_northpoint(self, t)
returns right ascension of the northpoint for the given time.

 
Functions
       
get_latest_extrap_orbit_file()
Return the latest extrapolated orbit file.
get_latest_orbit_file()
Return the latest normal orbit file.

 
Data
        __version__ = '8/25/09'