Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate gaussian noise relative to background level #177

Open
chummels opened this issue Oct 14, 2021 · 0 comments
Open

Calculate gaussian noise relative to background level #177

chummels opened this issue Oct 14, 2021 · 0 comments

Comments

@chummels
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant