LSSTDESC / Twinkles

10 years. 6 filters. 1 tiny patch of sky. Thousands of time-variable cosmological distance probes.
MIT License
13 stars 12 forks source link

Minimum wavelength in SED files for lensed supernovae #470

Closed jchiang87 closed 6 years ago

jchiang87 commented 6 years ago

@jbkalmbach The SEDs in the specFileGLSN* files all start at 300nm, so that when they are redshifted, the lower bound is greater than the minimum LSST bandpass wavelength. When imSim tries to resample the GLSN SEDs into the LSST bandpass, it inserts nans for the uncovered wavelengths, and galsim subsequently crashes when fed a flux with a nan value. The specFilesGLSN* files need to start at a shorter wavelength, e.g., 30nm as for the specFileSN* files.

rbiswas4 commented 6 years ago

There is protection for this kind of problem in SNObject. It would be good to use that.