Closed weaverba137 closed 1 month ago
At the data telecon on 2024-09-24, there appeared to be a consensus that we should not put additional effort toward recovering data missing from zbest
files. That leaves two open questions: does a particular Table()
conversion impact performance, and new/unknown columns.
The second open question is also mentioned in desihub/desidatamodel#199.
I verified with runs of this branch and main, that the switch from numpy structured arrays to astropy Table has negligible impact on the overall runtime for desi_zcatalog and that they produce identical catalogs, i.e. nothing funny with bytes vs. strings, masked values, etc.
Some early tiles in the
daily
specprod havezbest
instead ofredrock
files. To support loadingdaily
into a database, these need to be read bydesispec.scripts.zcatalog
. In this PR:read_redrock
detects whether azbest
file is being opened and attempts to reconstruct its output as best as possible to match aredrock
file.Open questions:
MEAN_PSF_TO_FIBER_SPECFLUX
in the (coadded) fibermap table or the entireTSNR2
table missing fromzbest
files?read_redrock
always converts the per-exposure fibermap into aastropy.table.Table
. Previously, the per-exposure fibermap would only be aTable
ifrecoadd_fibermap=True
. We need to determine whether this introduces a significant performance overhead.FIRSTNIGHT
NUMEXP
NUMTILE
MIN_MJD
MAX_MJD
MEAN_MJD
IN_COADD_(B|R|Z)
, in theEXP_FIBERMAP
HDU.Some additional operational testing should probably be done before merging.