de_redshift¶
- threadcount.fit.de_redshift(wavecoord, z=0, z_initial=0)[source]¶
De-redshift the WaveCoord in-place.
- Parameters:
wavecoord (
mpdaf.obj.WaveCoord) – The wavelength coordinate to be de-redshiftedz (float, optional) – The redshift of the object whose wavecoord to de-redshift, by default 0 (i.e. no change)
z_initial (float, optional) – The redshift currently applied to the wavecoord, by default 0 (i.e. none applied)
Notes
I tried to make z a new attribute in wavecoord, but due to details in how slicing works, this was not a simple change. Therefore z must be stored in a variable externally to the wavecoord.