matryoshka.rsd

matryoshka.rsd.AP(lPk, mu_bins, kbins, qperp, qpar)

Function to include the AP effect into multipoles. The function reconstructs the 2d power before including AP.

Parameters
  • lPk (array) – Array containing the multipoles. Should have shape (nl, nk).

  • mu_bins (array) – The mu bins used to reconstruct the 2d power and recompute the multipoles.

  • kbins (array) – The k-bins associated to lPk.

  • qperp (float) – AP parameter. See eq. 16 in arXiv:2003.07956v2

  • qpar (float) – AP parameter. See eq. 16 in arXiv:2003.07956v2

Returns

Array containing the multipoles with AP included. Will have the same shape as lPk.

matryoshka.rsd.DA(Om, z)

LCDM AP parameter auxiliary function (from pybird)

matryoshka.rsd.Hubble(Om, z)

LCDM AP parameter auxiliary function (from pybird)

matryoshka.rsd.RSD(Pk, kbins, mu_bins, beta, poles=None, fog=True, sigma=None, qperp=None, qpar=None)

Calculate power spectrum in redshift space from the real space galaxy power spectrum.

Parameters
  • Pk (array) – Halo model prediction of the power spectrum.

  • kbins (array) – k-bins associated to Pk.

  • mu_bins (array) – The mu bins to be used.

  • beta (float) – Ratio of the growth rate and galaxy bias.

  • poles (array) – Multipoles to be calculated. If None the 2d power spectrum will be returned. Default is None. Default is None. Required if Pk is 1d.

  • fog (bool) – Use finger of god damping.

  • sigma (float) – Free parameter of fog model.

  • qperp (float) – AP parameter. See eq. 16 in arXiv:2003.07956v2

  • qpar (float) – AP parameter. See eq. 16 in arXiv:2003.07956v2

Returns

Redshift space power spectrum. If poles is None will have shape (nk, nmu). If poles is not None will have shape (nl, nk).

matryoshka.rsd.multipole(Pk, l, mu_bins)

Calculate the redshift-space multipoles from the 2d power spectrum.

Parameters
  • Pk (array) – Halo model prediction of the power spectrum.

  • l (int) – Multipole order.

  • mu_bins (array) – mu bins associated to Pk.

Returns

lth order multipole.

matryoshka.rsd.reconstruct_from_multipoles(poles, mu_bins)

Funtion for reconstructing the 2d power spectrum from multipoles.

Parameters
  • poles (list) – List of arrays containg the multipoles to be used for the reconstruction.

  • mu_bins (array) – The mu bins to be used.

Returns

The reconstructed 2d power spectrum.