2 from lsst.pipe.tasks.makeCoaddTempExp
import MakeCoaddTempExpTask
5 __all__ = [
"JointcalCoaddTaskConfig",
"JointcalCoaddTask"]
9 """Config for JointcalCoaddTask 12 MakeCoaddTempExpTask.ConfigClass.setDefaults(self)
18 ConfigClass = JointcalCoaddTaskConfig
21 """Return one "calexp" calibrated exposure 26 a sensor-level data reference 28 return calexp with background subtracted? If False get the 29 calexp's background background model and add it to the calexp. 34 The calibrated exposure. If config.doApplyUberCal, jointcal 35 calibrations will be applied to the returned exposure using 38 exposure = dataRef.get(
"calexp")
41 background = dataRef.get(
"calexpBackground")
42 mi = exposure.getMaskedImage()
43 mi += background.getImage()
45 if not self.config.doApplyUberCal:
48 self.log.info(
"doApplyUberCal is set - Using jointcal updated calibrations")
53 """Update an Exposure with the Wcs, from meas_jointcal 54 (Calib and flux sacling will be also used later). 55 If None, the calexp will be loaded from the dataRef. Otherwise it is 59 calexp = dataRef.get(
"calexp")
61 wcsCont = dataRef.get(
"jointcal_wcs")
62 calexp.setWcs(wcsCont)
64 return Struct(exposure=calexp)
def getCalExp(self, dataRef, bgSubtracted)
def applyJointcalResultsExposure(self, dataRef, calexp=None)