Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 639 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 639 Bytes

gaiautils

gaia.aip.de cheatsheet

Convert gaia source_id to healpix ID

hpix  = source_id / (235×4(12−n)) = source_id / 2**(59−2n)

Usage

in order to make a loop over the all sky you should go over the hpix one by one: in this pseudocode example you will get with HpixLevel=5 12288 splits, representing the whole sky.

HpixLevel=5
NPIX = 12*4**HpixLevel

for i in range(0,NPIX):
   data=make_one_query()
   save_data(f"level_{HpixLevel}_hpix_{i}.h5")