Skip to content

Commit fe82eaa

Browse files
committed
Add comment explaining scale factor for
1 parent 7bfe869 commit fe82eaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

s2fft/transforms/c_backend_spherical.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ def _healpy_alm2map_transpose(df: jnp.ndarray, L: int, nside: int) -> tuple:
360360
* (3 * nside**2)
361361
/ jnp.pi
362362
)
363+
# Scale factor above includes the inverse quadrature weight given by
364+
# (12 * nside**2) / (4 * jnp.pi) = (3 * nside**2) / jnp.pi
365+
# and also a factor of 2 for m>0 to account for the negative m.
366+
# See explanation in this issue comment:
367+
# https://github.com/astro-informatics/s2fft/issues/243#issuecomment-2500951488
363368
return (scale_factors * jnp.conj(healpy_map2alm(jnp.conj(df), L, nside)),)
364369

365370

0 commit comments

Comments
 (0)