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

ENH: Handling open RANGE intervals for POS options: handling Inf #598

Open
bsipocz opened this issue Sep 16, 2024 · 5 comments
Open

ENH: Handling open RANGE intervals for POS options: handling Inf #598

bsipocz opened this issue Sep 16, 2024 · 5 comments

Comments

@bsipocz
Copy link
Member

bsipocz commented Sep 16, 2024

I was following up on recent reports of SIAv2 inconsistencies, and run into the issues that currently we don't allow +/- Inf for POS values, though that standard (e.g. SIA2 2.1.1 section) lists them as valid values for e.g around the poles or for all sky.

Should we allow these? It will need a bit of a hackery in the validator, but can make it work.

# North pole: (0, 360, 89, +Inf)]
# All sky: (-Inf +Inf -Inf +Inf)

(Also, with the very recent #594 it became clear that we have these position parsers both in DAL and in registry. Now the two are not exactly the same, so may not worth spending too much effort to cleanup, but still, we may consider doing it at some point.

@bsipocz
Copy link
Member Author

bsipocz commented Sep 17, 2024

However, trying to use Inf in an actual query gets back an error message from the server side, too, UsageFault: BAD_REQUEST: dec value inf lies outside valid interval [-90, 90] so maybe we should just leave it alone, here, too.

https://irsa.ipac.caltech.edu/SIA?COLLECTION=wise_allwise&COLLECTION=twomass_allsky&POS=range+164.7+165.8+89.8+Inf&RESPONSEFORMAT=html

@bsipocz
Copy link
Member Author

bsipocz commented Sep 17, 2024

We can/should also support more SkyCoord/angle inputs. I wrote up what I had in mind here: #409 (comment)

@msdemlei
Copy link
Contributor

msdemlei commented Sep 17, 2024 via email

@bsipocz bsipocz changed the title ENH: allowing all POS options from standard and more ENH: Handling open RANGE intervals for POS options: handling Inf Sep 17, 2024
@bsipocz
Copy link
Member Author

bsipocz commented Sep 17, 2024

Rather than hacking around, I'd say we ought to report back to the
IVOA that in POS=RANGE, Inf handling is broken on many services and
doesn't seem to have any merits, as clients have complete control
about "up to the pole" or "until the stitching line" anyway. And we
could ask them to drop Infs here. Or even better, drop RANGE
entirely?

This sounds good to me, and thank you for doing a better due diligence and checking multiple services for this. Dropping Infs sounds great to me, but I haven't got enough insight on how disruptive would be to drop RANGE.

Would you mind doing the reporting back to the appropriate IVOA channels?

@msdemlei
Copy link
Contributor

msdemlei commented Sep 18, 2024 via email

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