Two-point statistics

Angular power spectra

heracles.angular_power_spectra(alms, alms2=None, *, lmax=None, debias=True, bins=None, weights=None, include=None, exclude=None, out=None)

compute angular power spectra from a set of alms

heracles.debias_cls(cls, bias=None, *, inplace=False)

remove bias from cls

Mixing matrices

heracles.mixing_matrices(fields, cls, *, l1max=None, l2max=None, l3max=None, bins=None, weights=None, out=None, progress=None)

compute mixing matrices for fields from a set of cls

Parameters:
  • fields (Mapping[Any, Field])

  • cls (Mapping[TwoPointKey, NDArray[Any]])

  • l1max (int | None)

  • l2max (int | None)

  • l3max (int | None)

  • bins (ArrayLike | None)

  • weights (str | ArrayLike | None)

  • out (MutableMapping[TwoPointKey, ArrayLike] | None)

  • progress (Progress | None)

Return type:

MutableMapping[TwoPointKey, ArrayLike]

Auxiliary functions