Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Producing sky models as spherical harmonic coefficients? #15

Open
mreineck opened this issue Mar 26, 2024 · 4 comments
Open

Producing sky models as spherical harmonic coefficients? #15

mreineck opened this issue Mar 26, 2024 · 4 comments

Comments

@mreineck
Copy link

mreineck commented Mar 26, 2024

Many current simulation efforts are working with non-axisymmetric beams and partially with rotating half-wave plates, and to implement these effects efficiently, an input sky given in the form of a_lm is much preferrable to, say, Healpix sky maps.
Of course this can be obtained by running a map analysis on the outputs of the sky model, but I wonder if it wouldn't be advantageous to actually run as many of the sky model calculations as possible in harmonic space as well. Advantages would include

  • no accuracy loss during rotations
  • no accuracy loss (and much higher performance) when smoothing
  • input "maps" to the sky model components could be stored as a_lm as well. If that is done, only one set of a_lm is sufficient for all possible output resolutions, since a_lm can be read in to any desired band limit, as opposed to maps, where either maps at different resolutions have to be stored, or downscaling must be performed.

There are of course some components where at least some of the calculations have to be performed in position space, but these would simply be treated as before, and the maps internally converted to a_lm at a convenient stage.

I have suggested this to the pysm developers as well, but have not had a response yet (galsci/pysm#90 (comment)). @hke, do you think such an approach could be generally useful?

@hke
Copy link

hke commented Mar 29, 2024 via email

@mreineck
Copy link
Author

Thanks, this is going exactly in the direction I was thinking of!

For the components that have spatially varying spectral indices it would of course be a huge hassle to work in hte harmonic domain, and I didn't mean to suggest that! I'd just do it for the components that are equally easy to treat in pure a_lm form, and I think there are quite a few.

But even for the other components it might be worth considering to switch from Healpix to, say, Gauss-Legendre or equidistant grids for the real-space operations, since the spherical harmonic analysis is should be more accurate there. Of course, once you perform nonlinear operations, the band limit of he map goes out of the window anyway, but switching to a grid where a simple a_lm -> map -> a_lm computation gives you the input back with 12 significant digits (compared to roughly 3-5 digits for Healpix) could be advantageous.

@hke
Copy link

hke commented Mar 29, 2024 via email

@mreineck
Copy link
Author

I completely agree :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants