flip.covariance.carreres23.generator
====================================

.. py:module:: flip.covariance.carreres23.generator


Functions
---------

.. autoapisummary::

   flip.covariance.carreres23.generator.angle_between
   flip.covariance.carreres23.generator.separation
   flip.covariance.carreres23.generator.window
   flip.covariance.carreres23.generator.intp
   flip.covariance.carreres23.generator.covariance_vv
   flip.covariance.carreres23.generator.compute_coef
   flip.covariance.carreres23.generator.generate_covariance


Module Contents
---------------

.. py:function:: angle_between(ra_0, ra_1, dec_0, dec_1)

   Compute cos of the angle between r0 and r1.


.. py:function:: separation(r_0, r_1, cos_alpha)

   Compute separation between r_0 and r_1.


.. py:function:: window(r_0, r_1, cos_alpha, sep, j0kr, j2kr)

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


.. py:function:: intp(win, k, pk)

.. py:function:: covariance_vv(ra_in, dec_in, rcomov_in, k_in, pk_in, grid_window_in=None, size_batch=100000, number_worker=8)

.. py:function:: compute_coef(k, pk, coord)

.. py:function:: generate_covariance(model_kind, power_spectrum_dict, coordinates_density=False, coordinates_velocity=None, **kwargs)

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

   :param model_kind: Specify the type of model to generate
   :param power_spectrum_dict: Pass the power spectrum to the function
   :param coordinates_density: Specify the coordinates of the density field
   :param coordinates_velocity: Generate the covariance matrix
   :param \*\*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 &quot;vv&quot;


