Skip to content

Conversation

@bsipocz
Copy link
Member

@bsipocz bsipocz commented Jul 30, 2025

This is TBD as IRSA SIA is not just yet returning datalinks

@bsipocz bsipocz requested a review from vandesai1 July 30, 2025 23:28
@bsipocz bsipocz added the content Content related issues/PRs. label Jul 30, 2025
Comment on lines 95 to 97
* `'spherex_qr'` -- the Quick Release Observations, for more information see [SPHEREx archive documentation at IRSA]().
* `'spherex_qr_cal'` -- the Quick Release Calibration products.
* `'spherex_qr_deep'` --
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessworking here, @vandesai1 please provide guidence here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@troyraen - I'm still missing on this definitions/description

The `'access_url'` column is particularly important because it tells you how to access the data. Let's look at the `'access_url'` value for the first row:

```{code-cell} ipython3
results['access_url'][0]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR is draft as this line currently returns an incomplete HTTPS url rather than a datalink.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to have been fixed, at least in the sense that it is now returning a full url instead of a relative path.

>>> results = Irsa.query_sia(pos=(coord, search_radius), collection='spherex_qr')
>>> results['access_url'][0]
'https://irsa.ipac.caltech.edu/ibe/data/spherex/qr/level2/2025W20_2D/l2b-v12-2025-176/6/level2_2025W20_2D_0444_1D6_spx_l2b-v12-2025-176.fits'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's great news!

@bsipocz bsipocz force-pushed the MAINT_spherex_switch_astroquery branch from 88bd7da to 58143c5 Compare September 8, 2025 21:47
@bsipocz bsipocz marked this pull request as ready for review September 9, 2025 18:48
@bsipocz
Copy link
Member Author

bsipocz commented Sep 9, 2025

@troyraen - this should be good to go now, I removed the DL explanations for now as we don't ship SIA with DL atm.

(I expect some possibly unrelated failures, as something popped up in cron yesterday and I haven't yet looked into them closely)

Copy link
Contributor

@troyraen troyraen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

import pyvo
from astroquery.ipac.irsa import Irsa
from pyvo.dal.adhoc import DatalinkResults
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this and also remove pyvo from the install cell.

from astropy.coordinates import SkyCoord
import pyvo
from astroquery.ipac.irsa import Irsa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add astroquery to the install cell.

@bsipocz
Copy link
Member Author

bsipocz commented Sep 10, 2025

As I mentioned above, the rendering issues are unrelated, so I go ahead and look into them separately.

@bsipocz bsipocz merged commit 1c4ae71 into Caltech-IPAC:main Sep 10, 2025
6 of 8 checks passed
@bsipocz bsipocz deleted the MAINT_spherex_switch_astroquery branch September 10, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Content related issues/PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: swap out pyvo for astroquery SIA for SPHEREx

2 participants