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

Updated bright star treatment and addition of saturation #90

Merged
merged 11 commits into from
Sep 27, 2024

Conversation

FedericoBerlfein
Copy link
Collaborator

@FedericoBerlfein FedericoBerlfein commented Sep 26, 2024

Small change to flux value where we switch from using Euclidlike PSF to bright star PSF.
Also need to add saturation limit to addNoise function in ccd.py.

euclidlike_imsim/stamp.py Outdated Show resolved Hide resolved
@FedericoBerlfein FedericoBerlfein changed the title Updated bright star treatment Updated bright star treatment and addition of saturation Sep 26, 2024
@FedericoBerlfein
Copy link
Collaborator Author

@aguinot Let me know if saturation implementation is ok.


# Apply saturation
saturation_ADU = saturation/gain
image[image > saturation_ADU] = saturation_ADU
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image is Galsim.Image - need to make a copy of the image data and modify it and put it back

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected.

@FedericoBerlfein
Copy link
Collaborator Author

Final changes made, updated saturation limit value to 200,000 electrons per https://www.euclid-ec.org/public/mission/vis/#:~:text=VIS%20pixels%20are%20saturated%20at,IE(AB)%3D16.0.

Copy link
Member

@rmandelb rmandelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have an optional suggestion, but it looks good!

euclidlike/instrument_params.py Outdated Show resolved Hide resolved
euclidlike_imsim/ccd.py Outdated Show resolved Hide resolved
@FedericoBerlfein FedericoBerlfein merged commit d673624 into main Sep 27, 2024
2 checks passed
@FedericoBerlfein FedericoBerlfein deleted the fb/bright_treatment branch September 27, 2024 15:14
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

Successfully merging this pull request may close these issues.

improve bright star treatment in Euclidlike and Euclidlike-imsim
3 participants