SPV
Calculates a stars position and velocity in the cartesian coordinate system.
Todo
- Expand the number of available operation
- Batch processing by taking file inputs
- Rust crate version
- Organizing/file structure options for batch output
- The ability to forward information from input files to the output files (example: Luminosity)
What it can't do
- Get any radial velocity if the position is 0
- Yeah that's about it :)
Governing equations
Position
Where x, y and z are the coordinates in the cartesian coordinate system in [km].
ra is Right ascension in [degrees] and dec is Declination in [degrees]
Radial velocity
x_u, y_u and z_u are the coordinates for a unitvector pointing in the direction of the Radial Velocity vector.
Removing the 0's is used for positive Radial Velocity vectors.
x, y and z are still the position coordinates in cartesian coordinates [km].
Multiplying by the radial velocity gives us the coordinates of the resulting vector.
Proper motion
Getting the position the object will be at in one second by using the same formula as for position.
Resetting the origin of the vector to the current position
Multiplying by the new position gives us the coordinates of the resulting vector.
Total velocity
Just taking the sum of the two velocities.