get_redshifts¶
-
randomfield.cosmotools.get_redshifts(cosmology, data, spacing, scaled_by_h=True, z_axis=2, num_interpolation_points=100)[source] [edit on github]¶ Calculate the redshift grid.
The output array is 3D with the same size as the data along z_axis but length 1 along the other two axes, so it is broadcastable with data. We use the plane-parallel approximation.