Skip to content

Commit

Permalink
Add linearity support for ISR
Browse files Browse the repository at this point in the history
Add linearizer argument to CfhtIsrTask.
Update genCameraRepository.py to set linearity type to "None"
and regenerate the amp info catalogs.
  • Loading branch information
r-owen committed Jun 4, 2016
1 parent abdb9b9 commit af7389c
Show file tree
Hide file tree
Showing 38 changed files with 49 additions and 46 deletions.
4 changes: 2 additions & 2 deletions bin/genCameraRepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import lsst.afw.table as afwTable
import lsst.afw.geom as afwGeom
from lsst.afw.cameraGeom import SCIENCE, FOCAL_PLANE, PUPIL, CameraConfig, DetectorConfig,\
makeCameraFromCatalogs
makeCameraFromCatalogs, NullLinearityType
from lsst.obs.cfht import MegacamMapper

PIXELSIZE = 0.0135 #mm/pix
Expand Down Expand Up @@ -251,7 +251,7 @@ def addAmp(ampCatalog, amp, eparams):
record.setSaturation(eparams['saturation'])
record.setSuspectLevel(float("nan")) # SUSPECT level unknown
#The files do not have any linearity information
record.setLinearityType('Proportional')
record.setLinearityType(NullLinearityType)
record.setLinearityCoeffs([1.,])
record.setHasRawInfo(True)
record.setRawFlipX(False)
Expand Down
2 changes: 1 addition & 1 deletion megacam/camera/ccd00.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd01.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd02.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd03.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd04.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd05.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd06.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd07.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd08.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd09.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd10.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd11.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd12.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd13.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd14.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd15.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd16.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd17.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd18.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd19.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd20.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd21.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd22.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd23.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd24.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd25.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd26.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd27.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd28.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd29.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd30.fits

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions megacam/camera/ccd31.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd32.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd33.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd34.fits

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion megacam/camera/ccd35.fits

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion python/lsst/obs/cfht/cfhtIsrTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def setDefaults(self):
class CfhtIsrTask(IsrTask) :
ConfigClass = CfhtIsrTaskConfig

def run(self, ccdExposure, bias=None, dark=None, flat=None, defects=None, fringes=None, bfKernel=None):
def run(self, ccdExposure, bias=None, linearizer=None, dark=None, flat=None, defects=None,
fringes=None, bfKernel=None):
"""Perform instrument signature removal on an exposure
Steps include:
Expand All @@ -27,6 +28,7 @@ def run(self, ccdExposure, bias=None, dark=None, flat=None, defects=None, fring
@param[in] ccdExposure -- lsst.afw.image.exposure of detector data
@param[in] bias -- exposure of bias frame
@param[in] linearizer -- linearizing functor; a subclass of lsst.ip.isr.LinearizeBase
@param[in] dark -- exposure of dark frame
@param[in] flat -- exposure of flatfield
@param[in] defects -- list of detects
Expand Down Expand Up @@ -84,6 +86,7 @@ def run(self, ccdExposure, bias=None, dark=None, flat=None, defects=None, fring
return IsrTask.run(self,
ccdExposure = ccdExposure,
bias = bias,
linearizer = linearizer,
dark = dark,
flat = flat,
defects = defects,
Expand Down

0 comments on commit af7389c

Please sign in to comment.