-
Notifications
You must be signed in to change notification settings - Fork 6
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
Implement utility functions purely related to survey and filter numbers #24
Conversation
We've been using the stuff in wldeblending, so if these functions match that, then it should be good to go. I'd suggest downloading their catalogs and converting the same entries w/ the same survey properties maybe? |
We'll leave the typical background on a moonless night out of this PR for now. @ismael-mendoza I think I'll merge this branch now |
|
||
|
||
def mag2counts(magnitude, survey_name, filter_name): | ||
"""Convert source magnitude to counts for a given filter of a survey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may mention that it consists of electron counts ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But is it really ?
For me, this is photon count. To be electron counts it needs to be multiplied by the gain.
It does not change a thing for LSST because the gain is set to 1.0 but for other surveys this is relevant.
This comes back to another related question about the units of the gain currently in electron/adu that should be changed to electron/count if we would like them to be compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm I think that the conversion from photons to electrons depends on the quantum efficiency while the gain is effectively transforming electrons to ADUs (it is in e-/ADU such that going from e- to ADUs is done by dividing by the gain).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming back to this, as we are using zeropoints indicating magnitudes giving 1e-/s, I would say that the fluxes we compute with those zeropoints should be in e-.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #93
ping @aboucaud (I don't know if you have a notification as the PR has been merged) |
Tentative implementation of functions for
Fixes #15