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

Meaning of gain parameters in desi.yaml #6

Closed
dkirkby opened this issue Feb 19, 2016 · 5 comments
Closed

Meaning of gain parameters in desi.yaml #6

dkirkby opened this issue Feb 19, 2016 · 5 comments

Comments

@dkirkby
Copy link
Member

dkirkby commented Feb 19, 2016

The gain parameters in desi.yaml are all given as:

gain: 1.0 # electrons per ADU

Since the value is 1.0, this question is mostly academic but I would like to be sure I am using this constant correctly in specsim in case someone ever runs with a different value.

The units indicate that I should divide the simulated electrons per bin by the gain. Is that correct?

@moustakas
Copy link
Member

Right.

@dkirkby
Copy link
Member Author

dkirkby commented Feb 19, 2016

Ok, thanks. I normally think of an amplifier gain as (output signal) / (input signal), but I'm glad the units are correct at least.

@djschlegel
Copy link

I've always advocated re-naming the quantity that astronomers use as the "loss".
At least then the meaning is no longer ambiguous.

@sbailey
Copy link
Contributor

sbailey commented Feb 19, 2016

The amplifier gain is (output signal) / (input signal) since in real life it is used to convert raw ADU (amplifier digital units) coming out of the CCDs into electron units, upon which we do the rest of the calculations. i.e.

electrons = (raw data CCD ADUs) * gain

It only seems backwards because our simulations are in electrons (photons) and then we divide by the gain to get back to really really raw ADU data. specter jumps through some hoops to ensure that we get the integerization right at the photon (electron) shot noise, and then it is converted into ADU and re-integerized like the CCD electronics do, and then re-multipled by the gain to get the final "electrons" that one would work with for extractions. I welcome review of that logic, however.

@dkirkby
Copy link
Member Author

dkirkby commented Feb 19, 2016

Ok, but the input signal to the front-end hardware amplifier is electrons (from e-h pairs) collected on a CCD gate, not ADUs.

@dkirkby dkirkby closed this as completed Feb 20, 2016
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

4 participants