Changes to data/comcam (as in PR description) are duplicated here for traceability:
Updating `data/comcam` `segmentation.txt` and `focalplanelayout.txt` with geometry and CCD properties appropriate for `lsstComCam` instrument from `obs_lsst` (including recent changes from https://jira.lsstcorp.org/browse/DM-28919).
All changes are similar to https://github.com/lsst-ts/phosim_syseng4/pull/6 .
Summary of changes for `focalplanelayout.txt`
- removal of all rafts besides `R22` (`lsstComCam` consists of one raft, `R22` )
- Columns 1,2 : x,y -position [microns] updated using `detector.getBBox()`, `bbox.centerY`, `bbox.centerX` (phosim is rotated 90 degrees from lsstComCam)
- Columns 4,5: number of x,y pixels unchanged (consistent for an ITL chip with `lsstComCam` `xpx = bbox.getHeight()`, `ypx=bbox.getWidth()` )
- Columns 15,16: x,y shift set to 0,0 since correct positions are provided with Columns 1,2 (most substantially this is noticeable for the corner sensors)
Summary of changes for `segmentation.txt`:
- removal of all rafts besides `R22` (`lsstComCam` consists of one raft, `R22` )
- short lines: no change (sensor names and number of x,y pixels are the same as before)
- long lines:
- Columns 1,2,3,4: [xlo, xhi ,ylo, yhi] in px per amplifier - since `lsstComCam` is an ITL, these are unchanged, ( eg. `[0 1999 0 508]` )
- Columns 5,6 serial read / parallel read : for ITL serial read is always 1, and parallel read is 1 or -1 : these are unchanged
- Column 7 : new gain values
- Column 11 : new read noise values
- Column 15, 16, 17, 18: prescan / overscan values, preserving phosim's rotation of 90 degrees to the left wrt lsstComCam . This means that the following was adopted (and tested):
phosim name |
lsstComCam name |
amplifier property |
bbox property |
serial overscan |
parallel prescan |
– |
– |
serial prescan |
parallel overscan |
amp.getRawParallelOverscanBBox() |
bbox.getHeight() |
parallel overscan |
serial overscan |
amp.getRawSerialOverscanBBox() |
bbox.getWidth() |
parallel prescan |
serial prescan |
amp.getRawSerialPrescanBBox() |
bbox.getWidth() |
This translates to
row meaning \ phosim name |
parallel prescan |
serial overscan |
serial prescan |
parallel overscan |
phosim values |
3 |
0 |
10 |
10 |
lsstComCam (ITL) |
3 |
0 |
48 |
32 |
This involved making changes to phosim_utils to use LsstComCam instrument - PR#13 https://github.com/lsst-dm/phosim_utils/pull/13 - that are already merged. Released as phosim_utils v.0.2.1. Also made an update to obs_lsst to recognize phosim-looking-like-comcam files and properly translate the heade - PR#298 was merged https://github.com/lsst/obs_lsst/pull/298 .