SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Classes | Functions | Variables
orbito.module_orbito Namespace Reference

Classes

class  OrbitoError
 Error returned by module_orbito. More...
 

Functions

def scname_connecttool2spice
 Rename into SPICE names: More...
 
def init_orbito
 Load general spice files (naifXXXX.tls,pckXXXXX.tpc). More...
 
def load_orbito
 Load in memory specific spice files need for the spacecraft. More...
 
def close_orbito
 Unload spice meta kernels. More...
 
def frame_transfo
 Frame transformation for a coordinate object. More...
 
def frame_transfo_velocity
 Velocity frame transformation for a coordinate object. More...
 
def read_orbito
 For given Time object list, return sc position as a Coordinate list. More...
 
def find_perihelion
 Return list of all perihelion of a scraft between 2 dates. More...
 

Variables

tuple path_orbito = os.path.join(swddb_path,'Orbito')
 
dictionary orbito_info
 
dictionary perihelion = {}
 

Function Documentation

def orbito.module_orbito.close_orbito ( )

Unload spice meta kernels.

def orbito.module_orbito.find_perihelion (   scraft,
  date_begin,
  date_end,
  write = False 
)

Return list of all perihelion of a scraft between 2 dates.

Parameters
[out]Times_perihelion,:datetimes of the perihelion. List of module_timespace.Time objects
[out]Positions_perihelion,:positions of the perihelion. List of module_timespace.Coordinate objects.

Here is the call graph for this function:

def orbito.module_orbito.frame_transfo (   points_in,
  frame_in,
  frame_out,
  times 
)

Frame transformation for a coordinate object.

Parameters
[in]points_in,:list of module_timespace.Coordinate object with x,y,z attributes filled.
[in]frame_in,frame_out,:one of Spice reference frame. IAU_SUN, GSE, HEE...
[in]times,:list of module_timespace.Time objects
[out]points_out,:list of module_timespace.Coordinate in frame_out referential.
def orbito.module_orbito.frame_transfo_velocity (   velocities_in,
  frame_in,
  frame_out,
  times 
)

Velocity frame transformation for a coordinate object.

Parameters
[in]velocities_in,:list of module_timespace.Coordinate object with x,y,z attributes filled.
[in]frame_in,frame_out,:one of Spice reference frame. IAU_SUN, GSE, HEE...
[in]times,:list of module_timespace.Time objects
[out]velocities_out,:list of module_timespace.Coordinate in frame_out referential with only x,y,z filled.
def orbito.module_orbito.init_orbito ( )

Load general spice files (naifXXXX.tls,pckXXXXX.tpc).

Here is the caller graph for this function:

def orbito.module_orbito.load_orbito (   scraft)

Load in memory specific spice files need for the spacecraft.

General spice files must be loaded before (naifXXXX.tls,pckXXXXX.tpc).

Todo:
Check if init_orbito was called before.

Here is the caller graph for this function:

def orbito.module_orbito.read_orbito (   scraft,
  times,
  referential,
  correction,
  observer 
)

For given Time object list, return sc position as a Coordinate list.

Use Spice spkezr to get S/planet position in some referential and with some correction.
Referential:

  • IAU_SUN: equivalent to HelioGraphic Coordinates.

Correction:

  • None: Uncorrected data.
  • LS+S: Light time and stellar aberration correction.

For the moment, SOLO is shifted with 10 years.

Here is the call graph for this function:

Here is the caller graph for this function:

def orbito.module_orbito.scname_connecttool2spice (   scraft)

Rename into SPICE names:

  • STA into STEREO AHEAD
  • STB into STEREO BEHIND
  • PSP into SPP
  • SOLO into SOLO
  • BEPI into BepiColombo

Here is the caller graph for this function:

Variable Documentation

orbito.module_orbito.orbito_info

List of available spacecraft or planet.

tuple orbito.module_orbito.path_orbito = os.path.join(swddb_path,'Orbito')
dictionary orbito.module_orbito.perihelion = {}