correct_stellar_aberration

giant.ray_tracer.scene:

giant.ray_tracer.scene.correct_stellar_aberration(camera_to_target_position_inertial, camera_velocity_inertial)[source]

Correct for stellar aberration using rotations.

This works by computing the rotation about the aberation axis and then applying this rotation to the vector from the camera to the target in the inertial frame. This is accurate and doesn’t mess up the distance to the target. It should therefore always be preferred to correct_stellar_aberration_fsp()

Note that this assumes that the units for the input are all in kilometers and kilometers per secon. If they are not you will get unexpected results.

Parameters:
  • camera_to_target_position_inertial (ndarray) – The vector from the camera to the target in the inertial frame

  • camera_velocity_inertial (ndarray) – The velocity of the camera in the inertial frame relative to the SSB

Returns:

the vector from the camera to the target in the inertial frame corrected for stellar aberration

Return type:

ndarray