vgsr_to_vhel

gala.coordinates.vgsr_to_vhel(coordinate, vgsr, vsun=None)[source]

Convert a radial velocity in the Galactic standard of rest (GSR) to a barycentric radial velocity.

Parameters:
coordinate : SkyCoord

An Astropy SkyCoord object or anything object that can be passed to the SkyCoord initializer.

vgsr : Quantity

GSR line-of-sight velocity.

vsun : Quantity

Full-space velocity of the sun in a Galactocentric frame. By default, uses the value assumed by Astropy in Galactocentric.

Returns:
vhel : Quantity

Radial velocity in a barycentric rest frame.