Expand description

Set of common functions used by spv-rs exposed if you want to used them for your own calculations.

Functions

Takes a in as (arcseconds) and parllax in mas (milliarcsecond) and outputs a in au.

Calculates r max or the maximum distance between the primary and companion boides in a twobody system also known as apogee (suffix may change depending on what object it reffers to). Output is just the x coordinate in the ellipses plane.

Calculates total declination in degrees with declination_degree, declination_min and declination_s in degrees, minutes and seconds respectively.

Calculates the eccentric anomaly in degrees

If you for some reason had these parameters and not e then here ya go.

Flattening is another way to defining eccentricity for an ellipse.

Calculates the flight path angle for the companion body in degrees

Distance between one foci and the center of the ellipse.

Mean motion or n

Calculates r min or the minimum distance between the primary and companion boides in a twobody system also known as perigee (suffix may change depending on what object it reffers to). Output is just the x coordinate in the ellipses plane.

If you dind’t have the period already

Calculates the total radius for a twobody system

Calculates r max or the maximum distance between the primary and companion boides in a twobody system also known as apogee (suffix may change depending on what object it reffers to). Output is 3-dimensional vector that represents the coordinates for apogee rotated to be relative to the earth/sun plane.

Calculates r min or the minimum distance between the primary and companion boides in a twobody system also known as perigee (suffix may change depending on what object it reffers to). Output is 3-dimensional vector that represents the coordinates for perigee rotated to be relative to the earth/sun plane.

Calculates total right ascension in degrees with right_ascension_h, right_ascension_min and right_ascension_s in hours, minutes and seconds respectively.

If you for some reason had these parameters and not a then here ya go

Calculates the semi minor axis for a twobody system

Calculates the semi parameter for a twobody system

Calculates the specific angular momentum coordinates

Calculates the specific angular momentum value

Specific mechanical energy (used by other equation but exposed here if you need it)

Calculates the stadard gravitational parameter

Calculates the true anomaly in degrees