-
Notifications
You must be signed in to change notification settings - Fork 3
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
HEALPix value map plotting functionality #26
Comments
Thanks for the proposition! Maybe this could be added to the library. What were your issues when trying to implement it? Did you use |
I tried to follow how the The bigger problem I faced is with backwards facing cells. I know in mocpy there's a method that deals with them, but I wasn't sure exactly how to adapt that for this case. |
The idea is:
so the cross product of all the sides should be positive whereas the back-facing ones will be
so the cross product of all the sides will be negative. You can filter these out. Would you be interested in contributing a method? We could discuss the API / where this should be in the code base. Otherwise we'll do it, but not before a few months. |
Thank you for the help! I'd be happy to try contributing it. I've used a few methods from mocpy that As for the API, I imagine it could work similarly to the mocpy methods that have |
That would be a nice method to have to plot healpix cells directly from cdshealpix, healpy is already doing it. For the API I like the 3 arrays option as it seems to be consistent with other method arguments. So values contains color values that would correspond to a color picked from a colormap ? Another possible API is the have the 2 HEALPix arrays (ipix and depth) and then define a color (really like mocpy's fill method). I suppose that with this case there would be different calls to that method with the same mpl ax and wcs as you may be would like to draw a list of pixels in one color but another list of pixels in another color. |
We should have a call sometime next week. Sending you all an email. |
TODO, move from mocpy (should support nested and ring to be integrated in this library)
|
It's not flexible at all, but there is a quick plotting of skymap method in the new release. It's only mollview and all-sky. You can chose the resolution and the frame (between icrs and galactic). What are your thoughts? |
It looks good, thanks! I think that's very similar to the functionality in healpy. For our use cases though we're interested in the additional functionality that something like the mocpy plotting allows, e.g. specifying the WCS and extra matplotlib parameters. We've been working on integrating our version of the skymap plotting based on the code I sent in our email discussion into our code base, with the idea that we could contribute it into cds-healpix-python once you were ready. If you're still interested in that, I'm happy to move forward with it when you would like. |
We've previously been using healpy, but due to compatibility and licensing issues, we're trying to migrate away from it. We've been enjoying using this library and mocpy, but one feature that we haven't been able to implement is plot HEALPix value maps, where each healpix pixel has its own color, similar to this healpy function.
Would it be possible to add this functionality?
The text was updated successfully, but these errors were encountered: