3 from __future__
import division, absolute_import, print_function
5 from lsst.pipe.tasks.makeCoaddTempExp
import MakeCoaddTempExpTask
6 from lsst.pipe.base
import Struct
12 """!Return one "calexp" calibrated exposure
14 @param[in] dataRef a sensor-level data reference
15 @param[in] bgSubtracted return calexp with background subtracted? If False get the
16 calexp's background background model and add it to the calexp.
17 @return calibrated exposure
19 If config.doApplyUberCal, meas_mosaic calibrations will be applied to
20 the returned exposure using applyMosaicResults.
22 exposure = dataRef.get(
"calexp")
25 background = dataRef.get(
"calexpBackground")
26 mi = exposure.getMaskedImage()
27 mi += background.getImage()
29 if not self.config.doApplyUberCal:
32 self.log.info(
"doApplyUberCal is set - Using jointcal updated calibrations")
37 """Update an Exposure with the Wcs, from meas_jointcal
38 (Calib and flux sacling will be also used later).
39 If None, the calexp will be loaded from the dataRef. Otherwise it is
43 calexp = dataRef.get(
"calexp")
45 wcsCont = dataRef.get(
"wcs")
46 calexp.setWcs(wcsCont.getWcs())
48 return Struct(exposure=calexp)
def applyJointcalResultsExposure
def getCalExp
Return one "calexp" calibrated exposure.