Open iprafols opened 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
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
Right now both
AstronomicalObject
andDesiQuasarCatalogue
compute the HEALPix of each line-of-sight but not necessarily using the samein_nside
.Some details:
AstronomicalObject
is used to save the data in "HEALPix files", i.e. all the deltas within the same HEALPix are saved on the same file. Herein_nside=16
DesiQuasarCatalogue
is used to read the data from the spectra file structure. For datain_nside=64
and for mocksin_nside=16
.DrqQuasarCatalogue
in_nside
makes it more complicated to locate objects and could potentially lead to bugs in the futureTo fix this I suggest we do:
add_healpix
fromDesiQuasarCatalogue
toQuasarCatalogue
and call the function also fromDrqQuasarCatalogue
AstronomicalObject
constructorThe consequences of this are: