3 from __future__
import division, absolute_import, print_function
5 from lsst.pipe.tasks.makeCoaddTempExp
import MakeCoaddTempExpTask
8 __all__ = [
"JointcalCoaddTaskConfig",
"JointcalCoaddTask"]
12 """Config for JointcalCoaddTask 15 MakeCoaddTempExpTask.ConfigClass.setDefaults(self)
21 ConfigClass = JointcalCoaddTaskConfig
24 """Return one "calexp" calibrated exposure 29 a sensor-level data reference 31 return calexp with background subtracted? If False get the 32 calexp's background background model and add it to the calexp. 37 The calibrated exposure. If config.doApplyUberCal, jointcal 38 calibrations will be applied to the returned exposure using 41 exposure = dataRef.get(
"calexp")
44 background = dataRef.get(
"calexpBackground")
45 mi = exposure.getMaskedImage()
46 mi += background.getImage()
48 if not self.config.doApplyUberCal:
51 self.log.info(
"doApplyUberCal is set - Using jointcal updated calibrations")
56 """Update an Exposure with the Wcs, from meas_jointcal 57 (Calib and flux sacling will be also used later). 58 If None, the calexp will be loaded from the dataRef. Otherwise it is 62 calexp = dataRef.get(
"calexp")
64 wcsCont = dataRef.get(
"jointcal_wcs")
65 calexp.setWcs(wcsCont)
67 return Struct(exposure=calexp)
def getCalExp(self, dataRef, bgSubtracted)
def applyJointcalResultsExposure(self, dataRef, calexp=None)