Datasets:
Fix spectrum.ivar units and scaling (UniverseTBD/mmu-hdf-to-hats#89)
#4
by victoralonsorodriguez - opened
Updates spectrum.ivar across all main and _10arcs margin Parquet partitions (and regenerates _metadata, _common_metadata, and README.md stats) to fix the missing square on spectrum_noise reported in https://github.com/UniverseTBD/mmu-hdf-to-hats/pull/89.
Previously, spectrum.ivar was computed as 1.0 / (spectrum_noise * 1e34) (~1e-16), missing the square on the 1-sigma flux error spectrum_noise. It is now 1.0 / ((spectrum_noise * 1e17) ** 2) (with non-positive/non-finite pixels set to 0.0), matching the normalized (1e-17 erg s^-1 cm^-2 A^-1)^-2 inverse variance units of DESI and SDSS.
hombit changed pull request status to merged