|
lsst.pipe.tasks g1c91cc4c4e+d2f8426a14
|
background = self.fixBackground(inputCoadd.image.array)
# create a copy to mutate
output = ExposureF(inputCoadd, deep=True)
output.image.array -= background
return Struct(outputCoadd=output)
class PrettyPictureStarFixerConnections(
PipelineTaskConnections,
dimensions=("tract", "patch", "skymap"),
):
inputCoadd = Input(
doc=("Input coadd for which the background is to be removed"),
name="pretty_picture_coadd_bg_subtracted",
storageClass="ExposureF",
dimensions=("tract", "patch", "skymap", "band"),
multiple=True,
)
outputCoadd = Output(
doc="The coadd with the background fixed and subtracted",
name="pretty_picture_coadd_fixed_stars",
storageClass="ExposureF",
dimensions=("tract", "patch", "skymap", "band"),
multiple=True,
)
class PrettyPictureStarFixerConfig(PipelineTaskConfig, pipelineConnections=PrettyPictureStarFixerConnections):
brightnessThresh = Field[float](
doc="The flux value below which pixels with SAT or NO_DATA bits will be ignored"
)
class PrettyPictureStarFixerTask(PipelineTask):