andycasey / smhr

Spectroscopy Made Hard(er)
14 stars 7 forks source link

Modified default behavior for negative flux values in spectrum #279

Closed alexji closed 6 years ago

alexji commented 6 years ago

This is an issue just for discussion purposes.

When reading spectra from files, SMHR currently makes all negative values into nan. For spectra with low S/N, or previously-normalized spectra (e.g. dividing out flats), this removes a lot of pixels that have information but possible bad reductions.

Instead, I have changed this so that it just turns the ivar into a small number but keeps the flux value. (It is not in v0.2 or on master yet, only in this commit: 1251394f5b19a72640fc4944f233e64aef5464d3.)

@andycasey what do you think?

andycasey commented 6 years ago

Seems reasonable to me.