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