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

HipsSurveyProperties for the CDS HIPS surveys by ID #128

Open
richardgmcmahon opened this issue Jul 17, 2018 · 2 comments
Open

HipsSurveyProperties for the CDS HIPS surveys by ID #128

richardgmcmahon opened this issue Jul 17, 2018 · 2 comments
Labels
Milestone

Comments

@richardgmcmahon
Copy link

Hello,

I am using this syntax to get the properties for the VLASS1.1 survey

url = "http://archive-new.nrao.edu/vlass/HiPS/VLASS1.1/Quicklook/properties"
hips_survey_properties = HipsSurveyProperties.fetch(url)

How do I get the properties for some the CDS surveys used in https://hips.readthedocs.io/en/latest/getting_started.html starting from the survey ID

e.g. hips_survey = 'CDS/P/DSS2/red'

@cdeil
Copy link
Contributor

cdeil commented Jul 18, 2018

You can do this:

import hips
p = hips.HipsSurveyProperties.from_name('CDS/P/DSS2/red')
print(p.data)

Or to fetch the list of all HiPS at CDS and then use lookup by name:

h = hips.HipsSurveyPropertiesList.fetch()
p = h.from_name('CDS/P/DSS2/red')
print(p.data)

@tboch - Is the implementation / URLs we query good? Or is there a better way?

And probably this isn't mentioned in the high-level docs yet, should be explained there.

@cdeil cdeil added the question label Jul 18, 2018
@cdeil cdeil added this to the 0.3 milestone Jul 18, 2018
@tboch
Copy link
Member

tboch commented Jul 18, 2018

@cdeil:

@tboch - Is the implementation / URLs we query good? Or is there a better way?

The implementation queries the MocServer on alasky, that's the best/most consistent way to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants