hipspy / hips

Python library to handle HiPS
https://hips.readthedocs.io
12 stars 16 forks source link

Accessing http://archive-new.nrao.edu/vlass/HiPS/VLASS1.1/Quicklook #126

Closed richardgmcmahon closed 6 years ago

richardgmcmahon commented 6 years ago

I would like to access and make a image from:

http://archive-new.nrao.edu/vlass/HiPS/VLASS1.1/Quicklook

The docs at: https://hips.readthedocs.io/en/latest/getting_started.html#make-a-sky-image

Say Specify the HiPS survey you want. You just need to provide a valid HiPS survey ID.

A good address that lists available HiPS data is http://aladin.u-strasbg.fr/hips/list

But https://hips.readthedocs.io/en/latest/getting_started.html#make-a-sky-image

is not listed.

How do I proceed?

adl1995 commented 6 years ago

The default URL that hips searches from is: http://alasky.unistra.fr/MocServer/query?hips_service_url=*&dataproduct_type=!catalog&dataproduct_type=!cube&get=record%27

Since the survey you're trying to query is not listed there, you can manually create a HipsSurveyProperties object and pass it to the make_sky_image function.

To create the object you just need to provide a URL to HiPS properties:

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

The remaining workflow should remain the same.

richardgmcmahon commented 6 years ago

Thanks, that worked with:

from hips import HipsSurveyProperties

adl1995 commented 6 years ago

Glad it worked!