Skip to content

Commit

Permalink
Add CTI pipelines for simulated instruments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Broughton committed Jan 23, 2025
1 parent 7e1b912 commit c2a0a1e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions pipelines/LSSTComCamSim/cpCti.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: LSSTCam cti calibration construction
instrument: lsst.obs.lsst.LsstComCamSim
imports:
- location: $CP_PIPE_DIR/pipelines/_ingredients/cpCtiLSST.yaml
2 changes: 1 addition & 1 deletion pipelines/_ingredients/cpCti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ tasks:
class: lsst.cp.pipe.CpCtiSolveTask
config:
connections.inputMeasurements: "cpCtiStatistics"
connections.outputCalib: "cpCtiCalib"
connections.outputCalib: "cti"
contracts:
- cpCtiSolve.connections.inputMeasurements == cpCtiIsr.connections.outputStatistics
14 changes: 7 additions & 7 deletions python/lsst/cp/pipe/cpCtiSolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,20 @@ class CpCtiSolveConfig(pipeBase.PipelineTaskConfig,
)
globalCtiColumnRange = pexConfig.ListField(
dtype=int,
default=[1, 2],
doc="First and last serialoverscan column to use for "
"global CTI fit.",
default=[1, 15],
doc="First and last serial overscan column to use for "
"serial EPER estimate.",
)
globalCtiRowRange = pexConfig.ListField(
dtype=int,
default=[1, 2],
doc="First and last parallel overscan row to use for "
"global CTI fit.",
"parallel EPER estimate.",
)

trapColumnRange = pexConfig.ListField(
dtype=int,
default=[1, 20],
default=[1, 2],
doc="First and last overscan column to use for serial trap fit.",
)

Expand Down Expand Up @@ -841,10 +841,10 @@ def calcEper(self, mode, inputMeasurements, amp):
data = data[ind]

# This looks at the charge that has leaked into
# the first few columns of the overscan.
# the first few columns or rows of the overscan.
overscan1 = data[:, 0]
overscan2 = data[:, 1]
ctiEstimate = (np.array(overscan1) + np.array(overscan2))/(nShifts*np.array(signal))
ctiEstimate = (overscan1 + overscan2)/(nShifts*np.array(signal))

return signal, ctiEstimate

Expand Down

0 comments on commit c2a0a1e

Please sign in to comment.