GalaxyPhotoDist#

class cosmicjellyfish.LSSsurvey.photo_window.GalaxyPhotoDist(photopars, *, specifications=None)[source]#

Bases: object

dNdz(z)[source]#

unnormalized dN/dz(z)

Parameters:

z (numpy.ndarray) – array of redshifts at which to compute the galaxy distribution

Returns:

unnormalized theoretical galaxy redshift distribution

Return type:

numpy.ndarray

Note

Implements the following parametrization:

\[\frac{{\rm d} N}{{\rm d} z} = \left(\frac{z}{z_b}\right)^2 \, \exp \left[-\left(\frac{z}{z_0}\right)^{n_\gamma} \right]\]
n_i(z, i, obs='GCph')[source]#

Function to compute the unnormalized dN/dz(z) with a window picking function applied to it

Parameters:
  • z (float) – Redshift

  • i (int) – index of the redshift bin

Returns:

binned distribution without photometric redshift errors

Return type:

float

ngal_photoz(z, i, obs)[source]#

Function to compute the binned galaxy redshift distribution convolved with photometric redshift errors n^{ph}_i(z)

Parameters:
  • z (float) – redshift at which to compute the distribution

  • i (int) – index of the redshift bin

Returns:

binned galaxy distribution convolved with photometric redshift errors

Return type:

float

Note

Implements the following equation:

\[p_{ph}(z_p|z) = \frac{1-f_{out}}{\sqrt{2\pi}\sigma_b(1+z)} \exp\left\{-\frac{1}{2}\left[\frac{z-c_bz_p-z_b}{\sigma_b(1+z)}\right]^2\right\} \ + \frac{f_{out}}{\sqrt{2\pi}\sigma_0(1+z)} \exp\left\{-\frac{1}{2}\left[\frac{z-c_0z_p-z_0}{\sigma_0(1+z)}\right]^2\right\}\]
norm(obs)[source]#

n^{ph}_i(z)

Parameters:
  • z (float) – redshift at which to compute the function

  • i (integer) – redshift bin index

Returns:

normalized binned galaxy distribution convolved with photoz errors

Return type:

float

norm_ngal_photoz(z, i, obs)[source]#

n^{ph}_i(z)

Parameters:
  • z (array) – redshift at which to compute the function

  • i (integer) – redshift bin index

Returns:

normalized binned galaxy distribution convolved with photoz errors

Return type:

float