vhel_to_vgsr

gala.coordinates.vhel_to_vgsr(coordinate, vhel, vsun)[source]

Convert a velocity from a heliocentric radial velocity to the Galactic standard of rest (GSR).

Parameters
coordinateSkyCoord

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

vhelQuantity

Barycentric line-of-sight velocity.

vsunQuantity

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

Returns
vgsrQuantity

Radial velocity in a galactocentric rest frame.