igmhub / picca

set of tools for continuum fitting, correlation function calculation, cosmological fits...
GNU General Public License v3.0
30 stars 22 forks source link

possible inconsistency of healpix values #885

Open iprafols opened 2 years ago

iprafols commented 2 years ago

Right now both AstronomicalObject and DesiQuasarCatalogue compute the HEALPix of each line-of-sight but not necessarily using the same in_nside.

Some details:

To fix this I suggest we do:

  1. Move the method add_healpix from DesiQuasarCatalogue to QuasarCatalogue and call the function also from DrqQuasarCatalogue
  2. Pass the HEALPix number to the AstronomicalObject constructor
  3. Update changes to the file structure of DESI outputs to meet the new structure. Check that this is the only thing we are changing.

The consequences of this are:

iprafols commented 2 years ago

Edit: The HEALPix value in AstronomicalObject is overwritten by method find_nside from Data which is run at the end of Survey.read_data

Waelthus commented 2 years ago

I don't think that this is a bug except for maybe that it isn't done for DRQ, but it might just not be needed there as files are not stored in healpix order anyway (at least from my limited (e)BOSS understanding). The DESI files are just stored in some way that has been decided on at some point, so I guess we should probably just stick to that.

But for the outputs it can be useful to have coarser or finer healpix cells depending on how much data actually went into the analysis, the find_nside iirc just tried to get each file a certain number of objects that were found to be good from previous analyses.

Not sure if the correlation function analysis is using that "optimized" n_side in any way or if you just set a desired one as well there, if the former a change of this output format might have implications down the line which are not necessarily simple.

Just my 5c