-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Add SDSS image cutout query tool #1383
Add SDSS image cutout query tool #1383
Conversation
Hello @kakirastern! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-24 14:20:18 UTC |
Reckon I might have used the |
Before you put more effort in it, I think it should be a method for the current SDSS() class rather than a standalone one. Don't have time to do a proper review atm. |
Okay, cool. That should be relatively easy to fix... I will do them both in a single commit (or two). |
Figured it out now... will make the changes in the PR soon. |
Codecov Report
@@ Coverage Diff @@
## master #1383 +/- ##
==========================================
- Coverage 64.51% 64.45% -0.06%
==========================================
Files 200 200
Lines 16022 16043 +21
==========================================
+ Hits 10337 10341 +4
- Misses 5685 5702 +17
Continue to review full report at Codecov.
|
So to recap on what I have done... I have added in two image cutout query tools to the SDSS() class as suggeted by @eteq. Such that now I can access the image cutout service of SDSS using two of their tools using Python. So if I do:
It then uses
Then it shows me the SDSS "image list" tool at http://skyserver.sdss.org/dr15/en/tools/chart/listinfo.aspx. |
The PR is now ready for a preliminary review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've requested a few changes, but the PR looks like it's mostly in good shape.
This is kind of a weird tool that doesn't fit that well within the rest of the astroquery landscape. It needs its own documentation. I would suggest including web browser screenshots too, since this one necessarily opens a web browser window.
Yeah, agreed that special documentation would be needed for this pair of tools. I will include screenshots as well, as the user is redirected to a webpage by |
Added documentation for the new tools. Ready for a review. |
@keflavich - shall we move ahead with this, or still waiting for a review from @eteq? |
let's move ahead. |
OK, I'll wrap it up this week then (after all it's AstroHackWeek :) ) |
@kakirastern - please rebase to retrigger CI before we do a final review. |
Sorry for the late response, but I will follow up within the next few days to rebase my PR. |
Sorry guys, has been experiencing some really awkward editor issues with VS Code when rebasing. So switched over to use PyCharm instead. But might have triggered some extra messages to the watchers of this repo. Apologies for any inconvenience made. |
Added a changelog for this PR. |
Rebased |
All crucial CI tests have been passed! Ready for a code review. |
I think my new comment on the issue needs a discussion first, before moving ahead with a rereview of this PR: |
closed at request of author, last SHA 1409e7c |
Fixes #444.
To add two convenience SDSS image cutout tools in response to @eteq's suggestions. The first case is as described in Issue #444. So when one does
the tool then uses
webbrowser
to open a new browser tab in the SDSS "navigate" interface, at http://skyserver.sdss.org/dr12/en/tools/chart/navi.aspx?ra=1&dec=2&scale=0.3&opt=GO .The second case proved to be problematic if implemented as envisioned. This is because not only the 'ra' and 'dec' need to be supplied, but also the 'target_name' needs to be provided. So I simplified the function to
This is so that at the call of the property-like function, the SDSS "image list" interface would be brought up in a new browser tab at https://skyserver.sdss.org/dr15/en/tools/chart/listinfo.aspx.
I have tested the added file locally, and everything seems to be in working order. Any suggestion for further improvements would be appreciated.