Skip to content

Commit 28197eb

Browse files
committed
Added a note about adopted definition of redshift
1 parent 046ce59 commit 28197eb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

astropy/coordinates/spectral_coordinate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def _project_velocity_and_shift(self, init_vel, fin_vel, line_of_sight_unit_vec)
688688
def with_observer_stationary_relative_to(self, frame, velocity=None, preserve_observer_frame=False):
689689
"""
690690
A new `SpectralCoord` with the velocity of the observer altered,
691-
but not the position.
691+
but not the position.
692692
693693
If a coordinate frame is specified, the observer velocities will be
694694
modified to be stationary in the specified frame. If a coordinate

docs/coordinates/spectralcoord.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ velocity equivalent to that redshift, and it is indeed large enough that we don'
159159
to worry about the rotation of the Earth on itself around the Sun (which would be
160160
at most a ~30km/s contribution).
161161

162+
.. note:: In the context of |SpectralCoord|, we use the full relativistic relation
163+
between redshift and velocity, i.e. :math:`1 + z = \sqrt{(1 + v/c)/(1 - v/c)}`
164+
162165
We now want to shift the wavelengths so that they would be in the rest frame of
163166
the galaxy. We can do this using the
164167
:meth:`~astropy.coordinates.SpectralCoord.to_rest` method::

0 commit comments

Comments
 (0)