reflex_correct#

gala.coordinates.reflex_correct(coords, galactocentric_frame=None)[source]#

Correct the input Astropy coordinate object for solar reflex motion.

The input coordinate instance must have distance and radial velocity information. So, if the radial velocity is not known, fill the radial velocity values with zeros to reflex-correct the proper motions.

Parameters:
coordsSkyCoord

The Astropy coordinate object with position and velocity information.

galactocentric_frameGalactocentric (optional)

To change properties of the Galactocentric frame, like the height of the sun above the midplane, or the velocity of the sun in a Galactocentric intertial frame, set arguments of the Galactocentric object and pass in to this function with your coordinates.

Returns:
coordsSkyCoord

The coordinates in the same frame as input, but with solar motion removed.