-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add ComCam vignetting #449
Conversation
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.
Look good. I do have one question which may warrant more explanation in the README.
devel-tools/vignetting/README.md
Outdated
@@ -14,10 +15,12 @@ Instructions for generating vignetting spline fits. | |||
photons per star. Currently, `magnorm=22.25` will produce ~100k | |||
incident photons per star. | |||
|
|||
4. To run the simulation run `galsim imsim-vignetting.yaml`. | |||
4. To run the simulation run `galsim imsim-vignetting.yaml`. For | |||
ComCam, you can add `eval_variables.bisComCam=True`. |
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.
What does adding this do?
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.
It sets this eval variable, which is then used in the yaml file to select between comcam/lsstcam settings in a few places. E.g., here.
The b
in bisComCam
(for boolean) is unfortunate. (Would have been nice to just have isComCam
which is more readable.). But that's a limitation of the galsim config system. I can add a bit more text to the README.
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.
Maybe bIsComCam
or bUseComCam
is better?
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.
Okay, I updated the README text and went with bIsComCam
.
857315b
to
34357bd
Compare
I updated the files in devel-tools/vignetting to handle both LsstCam and ComCam. I made one algorithmic tweak, which was to reflect the input (radius, flux) data about the radius=0 axis so when fitting the spline, the symmetry of the input data and knots forces the spline to have zero derivative at radius=0.
ComCam and (updated) LsstCam pngs below:
To use the new vignetting profile for ComCam, update your yaml config with: