-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
Re-enable rectangular search for SDSS query_region #2659
Comments
See relevant discussion at the end of the PR #2477 |
I think my take not radically different from comments already made on #2477, and apologies if I'm duplicating, but the items below all sort of fit together. Being explicit rather than implicit now will save time in the future.
|
Thanks for the careful thought @weaverba137 . Your points 3, 4, and 5 are right; On (6), generally yes, (7) - agree (8) - Yes, SDSS (the project) is unique in providing this service. Most astroquery-supported services do not have unique identifiers on which to perform cross-matches. So we do not have a general API for it. |
Personally, I don't care if it is cone or rectangle. The problem on my side is that the cone one has an arbitrary 3 arcmin limit on radius that is not documented (and does not seem to be just a default, I get a server error when radius exceeds 3 arcmin). If there is a way to workaround this limit without resorting back to SQL or doing multiple queries, then I will be happy enough. I cannot speak for others though. |
Maybe I'm misreading what you mean, but I would not characterize a server-side limit as arbitrary. The astroquery team did not make that choice out of thin air. Yes, it could be documented better, but it is not the case that it is not documented at all. |
@keflavich, thank you that is very useful information. I would still like to arrive at a consensus of what "rectangle" actually means, but I think restoring rectangle search functionality could proceed while that decision is still being made. |
Indeed, I bet there is quite a bit of ambiguity in what 'rectangle' means across different services, since it could mean either a projected rectangle with a specific size in angular units, or it could mean "what you get if you look in the range RA +/- width, Dec +/- height". The latter is perhaps less correct because of the failure to account for cos(dec), but it is easier to implement and therefore likely used in some cases. For now, the most important thing is to be clear in the documentation which is being used; we can work on unification across services after that. |
I think it is important to point out that rectangle search is an SDSS specific endpoint. So I would expect rectangle to mean what it means in SDSS: a range in ra and a range in dec. How a "radius" is converted into a rectangle is ultimately something that should be as direct as possible as I would rather calculate what that means myself, using my own projection. But if it's documented, it's ok if a correction for what astronomers expect when they mean 5x5arcmin around coordinates x,y etc. is automatically done. Just need to know. |
The thing is that it wasn't a specific endpoint on the server side, but a thing that only existed in astroquery. In fact this motivated the whole upgrade to use the specific cone-search (or whatever area search the server supports) endpoint. |
#2477 Removed rectangular search from
query_region
inSDSS
and converted it to a cone search. However, a drawback was not significantly discussed:With the sparse fields we usually query for extragalactic transients, this does not usually get close to row-size limits.
The changes in #2477 were made without Depreciation warnings as well, which I understand with the pre-release model.. however it would have been nice to at least preserve the old endpoint in function such as
query_rectangle_region
or in a parameter such asrectangular: bool = False
(where setting it to True uses the oldquery_region
) so that backwards compatibility can be maintained.Anyway this is a Feature Request to add this back in, as the old version still works (can be tested by pinning
astroquery
to e.g.,v0.4.6
, but making the change to the endpoint being HTTPS, a recent fix from #2654):In fact in SDSS rectangular search there is only a suggestion, not a hard limit, on "radius" of 0.2 degrees, which seems to be not enforced by radius but by rows returned. See e.g.,: https://skyserver.sdss.org/dr17/SearchTools/rect
The text was updated successfully, but these errors were encountered: