hipspy / hips

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

Creating rectangular panoramic images #110

Open DonkeyShot21 opened 7 years ago

DonkeyShot21 commented 7 years ago

Hey guys, many thanks for this library. I'm new to HiPS and I would like to know if there is a easy way to automatically convert an HiPS file to 2D panoramic images.

Thanks in advance :)

tboch commented 7 years ago

Hi, are you thinking of something similar to what is available here: http://aladin.unistra.fr/hips/cardboard-photospheres/ ?

DonkeyShot21 commented 7 years ago

Thanks for your reply. Yes, something like that! Maybe with: HipsTileAllskyArray?

cdeil commented 7 years ago

@DonkeyShot21 - I'm still not exactly sure what you mean by "convert an HiPS file to 2D panoramic images"!?

Do you have HiPS tile files on your local machine? Tiles are rectangular JPEG / PNG or FITS files, often 512 x 512 pixels that look like this:


Or do you just want to make a "normal" sky image using HiPS tiles that CDS or other astronomy data centers have prepared and are serving via a web server (see http://aladin.u-strasbg.fr/hips/) ?

If it's this use case, you should start by executing and reproducing the example sky image here: https://hips.readthedocs.io/en/latest/getting_started.html and then play with the parameters of this function to define which sky image you want: https://hips.readthedocs.io/en/latest/api/hips.WCSGeometry.html#hips.WCSGeometry.create E.g. you could make the "fov" larger if you want an allsky image.


Please let us know if this helps or what exactly you're trying to do.