yaw.catalogs.scipy.utils.count_pairs_patches#
- yaw.catalogs.scipy.utils.count_pairs_patches(patch1: PatchCatalog, patch2: PatchCatalog, config: Configuration, bin1: bool = True, bin2: bool = False) PatchCorrelationData[source]#
Implementes the pair counting between two patches in bins of redshift.
Bins the data as needed and builds the KDTrees for the pair finding. Converts the physical scales to angles for the given cosmology and redshift and counts the pairs. Pairs are recoreded for each set of scales and stored in a PatchCorrelationData object.
- Parameters:
patch1 (
yaw.catalogs.scipy.PatchCatalog) – The first input patch catalogue.patch2 (
yaw.catalogs.scipy.PatchCatalog) – The second input patch catalogue.config (
yaw.config.Configuration) – The configuration used for the correlation measurement.bin1 (
bool) – Whether to apply binning to the first patch.bin2 (
bool) – Whether to apply binning to the second patch.
- Returns:
A container containing the patch IDs, number of objects from both patches and the number of pair counts, each in bins of redshift.