trident-project / trident

A Synthetic Spectral Generation Suite
Other
21 stars 25 forks source link

Calculate gaussian noise relative to background level #177

Open chummels opened 3 years ago

chummels commented 3 years ago

In talking with observers, I learned that we're calculating our spectral noise slightly wrong. When adding noise to a spectrum, we currently generate a noise vector for the entire spectrum assuming a continuum value of 1, that is, by calculating the scale of the noise to be 1/SNR. Strictly speaking, the scale of this gaussian should be equal to the continuum value / SNR, so if a user has added a quasar background or Milky Way foreground, the continuum may not be 1 along the spectral range.