Compute the spiral-phase coherence: Â
```python Â
from healpy import alm2map, map2alm Â
def phase_gradient(map_Q, map_U, L): Â
  # Compute B-mode alm Â
  alm_B = map2alm(map_Q + 1j * map_U, lmax=L)[2]  # B-mode alms Â
  # Calculate [arg(B)] Â
  grad_phase = np.zeros(L) Â
  for l in range(2, L): Â
    m_values = np.arange(-l, l + 1) Â
    phases = np.angle(alm_B[ssht.elm2ind(l, m_values)]) Â
Beri Komentar
Belum ada komentar. Jadilah yang pertama untuk memberikan komentar!