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:
Returns:

A container containing the patch IDs, number of objects from both patches and the number of pair counts, each in bins of redshift.