openspace.space
Functions overview
Name |
Documentation |
---|---|
Returns the cartesian world position of a ra dec coordinate with distance |
|
Returns the formatted ra, dec strings and distance for a given cartesian world coordinate |
|
Takes the provided TLE file, converts it into a SPICE kernel and returns a SpiceTranslation instance that can be used to access the information in the TLE file using SPICE’s superior integral solver |
Functions
convertFromRaDec
Returns the cartesian world position of a ra dec coordinate with distance. If the coordinate is given as strings the format should be ra ‘XhYmZs’ and dec ‘XdYmZs’. If the coordinate is given as numbers the values should be in degrees.
rightAscension
Number | String
declination
Number | String
distance
Number
Return type: vec3
openspace.space.convertFromRaDec(rightAscension, declination, distance)
convertToRaDec
Returns the formatted ra, dec strings and distance for a given cartesian world coordinate.
x
Number
y
Number
z
Number
Return type: (String, String, Number)
openspace.space.convertToRaDec(x, y, z)
readKeplerFile
p
Path
type
String
Return type: Table[]
openspace.space.readKeplerFile(p, type)
tleToSpiceTranslation
Takes the provided TLE file, converts it into a SPICE kernel and returns a SpiceTranslation instance that can be used to access the information in the TLE file using SPICE’s superior integral solver.
The second return value is the spice kernel that should be loaded and unloaded by
whoever called this function.
tlePath
String
Return type: { Translation, SpiceKernel }
openspace.space.tleToSpiceTranslation(tlePath)