flip.covariance.carreres23.generator#

Functions#

angle_between(ra_0, ra_1, dec_0, dec_1)

Compute cos of the angle between r0 and r1.

separation(r_0, r_1, cos_alpha)

Compute separation between r_0 and r_1.

window(r_0, r_1, cos_alpha, sep, j0kr, j2kr)

Note: here, the bisector angle definition is used in wide-angle

intp(win, k, pk)

covariance_vv(ra_in, dec_in, rcomov_in, k_in, pk_in[, ...])

compute_coef(k, pk, coord)

generate_covariance(model_kind, power_spectrum_dict[, ...])

The generate_covariance function generates a covariance matrix for the velocity field.

Module Contents#

flip.covariance.carreres23.generator.angle_between(ra_0, ra_1, dec_0, dec_1)[source]#

Compute cos of the angle between r0 and r1.

flip.covariance.carreres23.generator.separation(r_0, r_1, cos_alpha)[source]#

Compute separation between r_0 and r_1.

flip.covariance.carreres23.generator.window(r_0, r_1, cos_alpha, sep, j0kr, j2kr)[source]#

Note: here, the bisector angle definition is used in wide-angle

flip.covariance.carreres23.generator.intp(win, k, pk)[source]#
flip.covariance.carreres23.generator.covariance_vv(ra_in, dec_in, rcomov_in, k_in, pk_in, grid_window_in=None, size_batch=100000, number_worker=8)[source]#
flip.covariance.carreres23.generator.compute_coef(k, pk, coord)[source]#
flip.covariance.carreres23.generator.generate_covariance(model_kind, power_spectrum_dict, coordinates_density=False, coordinates_velocity=None, **kwargs)[source]#

The generate_covariance function generates a covariance matrix for the velocity field.

Parameters:
  • model_kind – Specify the type of model to generate

  • power_spectrum_dict – Pass the power spectrum to the function

  • coordinates_density – Specify the coordinates of the density field

  • coordinates_velocity – Generate the covariance matrix

  • **kwargs – Pass additional parameters to the function

:param : Generate the covariance matrix for the velocity field :param The wide angle used is the bisector.:

Returns:

A dictionary with a single key "vv"