Skip to content

Commit

Permalink
Update observed redshift to non-relativistic limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Robertson committed Aug 19, 2024
1 parent 0fdb0a2 commit 13f0226
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions source/nodes.property_extractor.lightcone.F90
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,20 @@ function lightconeExtract(self,node,time,instance)
& )
lightconeExtract (8 )=self%geometryLightcone_%solidAngle()/degreesToRadians**2
if (self%includeObservedRedshift) then
! Compute the relativistic velocity β=v/c.
! Compute the line-of-sight peculiar velocity divided by the speed of light: β_los=v_los/c.
velocityBeta =+Dot_Product (lightconeExtract(4:6),lightconeExtract(1:3)) &
& /Vector_Magnitude( lightconeExtract(1:3)) &
& *kilo &
& /speedLight
! Compute the observed redshift. This is given by:
! 1 + zₒ = (1 + zₕ) (1 + zₚ),
! where zₒ is observed redshift, zₕ is cosmological redshift (due to Hubble expansion), and zₚ is the peculiar redshift,
! given by
! 1 + zₚ = √[(1+βₚ)/(1-βₚ)]
! where βₚ=vₚ/c is the dimensionless peculiar velocity (e.g. Davis et al.; 2011; ApJ; 741; 67; eqn. 4;
! given by (in the non-relativistic limit) zₚ = β_los
! (e.g. Davis et al.; 2011; ApJ; 741; 67; below eqn. 4;
! https://ui.adsabs.harvard.edu/abs/2011ApJ...741...67D).
lightconeExtract(self%redshiftObservedOffset +1)= -1.0d0 &
& + (+1.0d0 +lightconeExtract(7 )) &
& *sqrt( &
& +(+1.0d0+velocityBeta) &
& /(+1.0d0-velocityBeta) &
& )
& * (+1.0d0 + velocityBeta )
end if
if (self%includeAngularCoordinates) then
lightconeExtract(self%angularCoordinatesOffset+1)=atan2( &
Expand Down

0 comments on commit 13f0226

Please sign in to comment.