pairwise_distance_rp

cosmo_utils.mock_catalogues.pair_counters.pairwise_distance_rp()

Cython engine for returning pairs of points separated in projected radial bins with an observer at (0,0,0).

Parameters:

coord_1 : array_like, shape (N,3)

Cartesian corodinates <x, y, z> of sample 1.

coord_2 : array_like, shape (N,3)

Cartesian corodinates <x, y, z> of sample 2.

rpmin : float, optional

Minimum rp (perpendicular distance) to search for and return pairs. This variable is set to 0.01 by default.

rpmax : float, optional

Maximum rp (perpendicular distance) to search for and return pairs. This variable is set to 10 by default.

nrpbins : int, optional

Total number of rp bins. This variable is set to 10 by default.

pimax : float, optional

Maximum parallel separation distance to search for and return pairs. This variable is set to 20 by default.

double_count : bool, optional

If True, the function double counts for each galaxy pairs. Useful for the 2-halo Quenched Fractions calculations.

Returns:

rp_ith_arr : numpy.ndarray, shape (M, 3)

Three-dimensional array of M-elements containing:
  • rp : bin number to which galaxy pair belongs.
  • i_ind : indices of 0-indexed indices in sample 1.
  • j_ind : indices of 0-indexed indices in sample 2.