3 from __future__
import division, absolute_import, print_function
5 from lsst.pipe.tasks.makeCoaddTempExp
import MakeCoaddTempExpTask
9 """Config for JointcalCoaddTask 12 MakeCoaddTempExpTask.ConfigClass.setDefaults(self)
17 ConfigClass = JointcalCoaddTaskConfig
20 """!Return one "calexp" calibrated exposure 22 @param[in] dataRef a sensor-level data reference 23 @param[in] bgSubtracted return calexp with background subtracted? If False get the 24 calexp's background background model and add it to the calexp. 25 @return calibrated exposure 27 If config.doApplyUberCal, meas_mosaic calibrations will be applied to 28 the returned exposure using applyMosaicResults. 30 exposure = dataRef.get(
"calexp")
33 background = dataRef.get(
"calexpBackground")
34 mi = exposure.getMaskedImage()
35 mi += background.getImage()
37 if not self.config.doApplyUberCal:
40 self.log.info(
"doApplyUberCal is set - Using jointcal updated calibrations")
45 """Update an Exposure with the Wcs, from meas_jointcal 46 (Calib and flux sacling will be also used later). 47 If None, the calexp will be loaded from the dataRef. Otherwise it is 51 calexp = dataRef.get(
"calexp")
53 wcsCont = dataRef.get(
"wcs")
54 calexp.setWcs(wcsCont.getWcs())
56 return Struct(exposure=calexp)
def getCalExp(self, dataRef, bgSubtracted)
Return one "calexp" calibrated exposure.
def applyJointcalResultsExposure(self, dataRef, calexp=None)