0 votes
181 views
I'm using a code that retrieves the access_url and uses it to download the cutout. When I run it, I get something like "access_url&POS=325.8954519,0.8876010457&SIZE=0.005555555555555556,0.005555555555555556" for the access_url using sia_service.search. Based on the code, it seems like this wasn't what it was expecting, as it later gives a Malformed URL error when trying to download the cutout:

ValueError: Malformed URL: 'access_url&POS=325.8954519391551,0.8876010457331891&SIZE=0.005555555555555556,0.005555555555555556'

This was working previously. I'm just wondering, was the format of the access_url recently changed, or is this an issue from somewhere else in the code.

To get the access_url, I ran:

import pandas

from pyvo.dal.sia import SIAService

SIA_URL = "https://datalab.noirlab.edu/sia/nsc_dr2"

sia_service = SIAService(SIA_URL)

center = (325.8954519,0.8876010457)

result = sia_service.search(center, size=(20/3600., 20/3600.)).to_table().to_pandas()
by | 181 views

1 Answer

0 votes
Best answer
Thanks for pointing this out, there was indeed a recent change to the SIA tables where a typo caused the problem you report.  The tables have been restored and the problem should be resolved, but please let us know if you still have problems.
by datalab (21.6k points)

451 questions

463 answers

474 comments

659 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories