Replies: 2 comments 1 reply
-
This is an expected behavior since where:
The motivation is the counting statistics -- This approximation to the noise might be not really applicable in the context of CCD measurements because there are different sources of noise -- Johnson noise for example |
Beta Was this translation helpful? Give feedback.
-
We have an option to add gaussian noise. Here is a little documentation about that method: |
Beta Was this translation helpful? Give feedback.
-
Sorry I am not sure if this should go here or in issues. Feel free to move it where it fits better.
I wanted to study the noise. So I synthesized a spectrum following the example:
spe1 = rc2.spectrum.from_delta_lines(deltas={500:1000, 700:1500}, xcal=lambda x: x*3 -1000, nbins=1000)
spe2 = spe1.convolve(lineshape='gaussian', sigma=2)
spe3 = spe2.add_baseline(n_freq=50, amplitude=10, pedestal=10)
spe4 = spe3.add_poisson_noise(scale=10) # scale multiplies the squared root of the maximum of the spectrum
(spe4-spe3).plot()
Now, If I do spe4-spe3, this should give me the value of the noise in every point of the spectrum, right? The thing is that, when I look into it, I find that the noise at the position of the peaks is clearly higher than at other positions. Am I doing something wrong? is there a bug somewhere?
Thank you for your time in advance,
Nico
Beta Was this translation helpful? Give feedback.
All reactions