-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
MapPlot Zenith projection in AltAz coordinates #85
Comments
To confirm I understand your question, do you mean you'd like to use alt/az coordinates with plotting functions like Currently, there is no built-in way to do this, since all the plotting functions (e.g. I do think it would be helpful to add some helper functions or something to starplot to help handle various coordinate systems. I'll think about how this could work and add it to the roadmap. If you have any ideas, suggestions are very welcome too! Thanks :) Steve |
Ok I discovered that I need to pass the RA/Dec polygon points counterclockwise to properly fill a polygon at horizon. |
Thanks for the extra info! I can see why alt/az makes more sense for your use case. I've been thinking more about how to handle different coordinate systems in Starplot, and thinking we could do it through some kind of coordinate base class that has multiple implementations (e.g. I've got this on the roadmap now, but probably won't get around to building it until v0.12.0 or later. Trying to wrap up v0.11.0 in the next few weeks. Thanks for raising that bug/issue around the polygons near the horizon. I've run into multiple issues with plotting polygons in matplotlib/cartopy and making sure they look good in all projections. I wasn't aware the coordinates needed to be in counterclockwise order, but that's a valuable discovery, thanks! I'll either add that info to the docs or find a way around it so coordinates in either direction work. |
@HealthyPear ah, just thought of this... for the polygon filling issue, is your first coordinate of the polygon the same as the last coordinate? If it isn't, that may result in the wrong side getting filled. |
Sorry for the delay in the response...
I'll check and let you know if it works!
This is basically astropy.coordinates.SkyCoord, no need to reinvent the wheel (unless you have a good reason not to add this dependency, which can be used also to deal with units transformations and other things related to optical astronomy). |
I realize I forgot to add some more info I found around this issue... but, basically you're right: that coordinates for polygons need to be in counterclockwise order (I added this to the docs, so hopefully that helps). I also found out that this dependence on order is by design, because it's a way to indicate if the polygon is internal to another polygon (i.e. a hole in the polygon). Good idea about using astropy's SkyCoord class, I'll look into that and see if it'd be easy to integrate into Starplot. Generally, I like to avoid adding dependencies (and Starplot already has a lot), but this one may make a lot of sense. It may even already be an indirect dependency :) |
Is it possible to support the Zenith projection of MapPlot also in azimuth and altitude/zenith coordinates instead of RA/Dec?
The text was updated successfully, but these errors were encountered: