Open ngbusca opened 6 years ago
Parsing spectra-64
to get nside=64 is a reliable method, though it does seem odd to have to parse a directory name to learn the nside.
PR #566 restored HPXNSIDE and HPXPIXEL keywords to the output spectra file from the standard pipeline, thought we still need to verify / update for quickspectra and quicklya scripts. But even then you would need to read one file to learn the nside to use when searching all the rest.
defacto using a default nside=64 and making that a input parameter for your code would also work.
Do you have an suggestion for where you think it should be kept for end-users to discover the nside?
Ah, I didn't realize it's written in the spectra files themselves! (it's not listed in readthedocs, but I totally understand if that's not up-to-date). I'm ok with reading one spectra file to find out. If you stored it in another file I would still have to read that other file, and would have to keep track of where that other file is.
I'm reopening this issue since the latest sim files produced by @julienguy using quickquasar
don't have these keywords (dc17b files do have the slightly different NSIDE
and HPIX
).
Two more comments for completeness:
quickquasar
is 16, so hardcoding doesn't workNEST
is fashionable these days, but maybe in 42 years we forget this choice).I sure hope that the mocks also used NESTED. Let's use that everywhere as if RING doesn't exist. It will be chaos if some places use one and others use the other.
Is the
nside
that is used to produce thespectra
files logged anywhere other than the path to the files (e.g. inspectra-64
)? We (myself, @londumas and others) are trying to find a way to determine in which spectra file a given target will have its spectrum given theRA, DEC
(or theTARGETID
for that matter), and it seems impossible unless one knows the value ofnside
or loops over all the files.