openspace.space

Functions overview

Name

Documentation

convertFromRaDec

Returns the cartesian world position of a ra dec coordinate with distance

convertToRaDec

Returns the formatted ra, dec strings and distance for a given cartesian world coordinate

readKeplerFile

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

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.

Parameters
  • rightAscension Number | String

  • declination Number | String

  • distance Number

Return type: vec3

Signature
openspace.space.convertFromRaDec(rightAscension, declination, distance)

convertToRaDec

Returns the formatted ra, dec strings and distance for a given cartesian world coordinate.

Parameters
  • x Number

  • y Number

  • z Number

Return type: (String, String, Number)

Signature
openspace.space.convertToRaDec(x, y, z)

readKeplerFile

Parameters
  • p Path

  • type String

Return type: Table[]

Signature
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.
Parameters
  • tlePath String

Return type: { Translation, SpiceKernel }

Signature
openspace.space.tleToSpiceTranslation(tlePath)