Skip to content

Have flats use camera info for image sizes#510

Merged
jchiang87 merged 4 commits intomainfrom
u/jchiang/flats_using_camera_info
Mar 19, 2026
Merged

Have flats use camera info for image sizes#510
jchiang87 merged 4 commits intomainfrom
u/jchiang/flats_using_camera_info

Conversation

@jchiang87
Copy link
Copy Markdown
Collaborator

This will enable generating flat/ptc datasets over the full focal plane, given the mixture of ITL and e2V CCDs.

Also, I've added a countrate_per_pixel option for flat images. This was extremely useful for creating PTC datasets during OR3/4, since one can control the signal level via the exposure times in an opsim db file. It will be needed for generating calibration datasets, e.g., for new sims using the LSSTCamSim instrument.

Copy link
Copy Markdown
Contributor

@rmjarvis rmjarvis left a comment

Choose a reason for hiding this comment

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

This is all fine. Just one minor suggestion.

self.counts_per_pixel = params['counts_per_pixel']
else:
exptime = base['exptime']
self.counts_per_pixel = params['countrate_per_pixel']*exptime
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe worth checking that counts_per_pixel isn't also set here.

@jchiang87 jchiang87 merged commit 7171335 into main Mar 19, 2026
3 checks passed
@jchiang87 jchiang87 deleted the u/jchiang/flats_using_camera_info branch March 19, 2026 20:52
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.

2 participants