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

Change number of pixels in ParticleMapsContainer() #200

Open
alexkaapa opened this issue Aug 21, 2018 · 1 comment
Open

Change number of pixels in ParticleMapsContainer() #200

alexkaapa opened this issue Aug 21, 2018 · 1 comment

Comments

@alexkaapa
Copy link

Is it possible to change the number of pixels in the map in ParticleMapsContainer() from the default of 12*64^2 pixels? Or is there at least some way to change the number of pixels when plotting the map in healpix? All I want to is to change the resolution of a map created via magnetic lensing when plotting in healpix.

@TobiasWinchen
Copy link
Member

TobiasWinchen commented Aug 22, 2018

This is not easily possible right now, as the number of pixels is hard coded in the lenses and thus the particle maps container. If absolutely necessary you could try to change the number 6 in line 64 of Pixelization.h to a different order, but this may have side effects.

For plotting you probably want to smooth the map? If this is the case, you probably should loop over the desired lat/lon grid of the plot and sum up the pixels in a cone of fixed radius using getPixelsInCone method of the pixelization. In particular, this allows e.g. to apply different smoothing kernels.

In the future, we should probably make this configurable by replacing the hard coded healpix order in line 64 of Pixelization.h with a default (to ensure backwards compatibility), and storing the order inside the lenses. This would allow also higher / lower resolution lenses.

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

No branches or pull requests

2 participants