qumas.MicrolensingTimescale.v_cmb module
- ra_dec_to_unit_vector(ra, dec)[source]
Convert RA and Dec to a unit vector.
Parameters: ra – Right Ascension in degrees dec – Declination in degrees
Returns: A 3-element numpy array representing the unit vector.
- calculate_projections(ra0, dec0, cmb_ra=167.9, cmb_dec=-6.9)[source]
Calculate the projections of the CMB dipole on East and North directions.
Parameters: cmb_ra – RA of the CMB dipole in degrees (J2000) cmb_dec – Dec of the CMB dipole in degrees (J2000) ra0 – RA of the point of interest in degrees (J2000) dec0 – Dec of the point of interest in degrees (J2000)
Returns: A tuple with (v_north, v_east), the projections of the dipole on the North and East directions.