ReprocessVisitImageTask#
- class lsst.drp.tasks.reprocess_visit_image.ReprocessVisitImageTask(schema=None, **kwargs)#
Bases:
PipelineTaskUse the visit-level calibrations to perform detection and measurement on the single frame exposures and produce a “final” exposure and catalog.
Methods Summary
run(*, exposures, initial_photo_calib, psf, ...)Detect and measure sources on the exposure(s) (snap combined as necessary), and make a "final" Processed Visit Image using all of the supplied metadata, plus a catalog measured on it.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Methods Documentation
- run(*, exposures, initial_photo_calib, psf, background, ap_corr, photo_calib, wcs, calib_sources, preliminary_mask=None, id_generator=None, background_to_photometric_ratio=None, result=None)#
Detect and measure sources on the exposure(s) (snap combined as necessary), and make a “final” Processed Visit Image using all of the supplied metadata, plus a catalog measured on it.
Parameters#
- exposures
lsst.afw.image.Exposureor list[lsst.afw.image.Exposure]Post-ISR exposure(s), with an initial WCS, VisitInfo, and Filter. Modified in-place during processing if only one is passed. If two exposures are passed, treat them as snaps and combine before doing further processing.
- initial_photo_calib
lsst.afw.image.PhotoCaliborNone Photometric calibration that was applied to exposure during the measurement of the background. Should be
Noneif and only if ``config.remove_initial_photo_calib` is false.- psf
lsst.afw.detection.Psf PSF model for this exposure.
- background
lsst.afw.math.BackgroundList Total background that had been fit to the exposure so far; modified in place to include background fit when detecting sources.
- ap_corr
lsst.afw.image.ApCorrMap Aperture Correction model for this exposure.
- photo_calib
lsst.afw.image.PhotoCalib Photometric calibration model for this exposure.
- wcs
lsst.afw.geom.SkyWcs World Coordinate System model for this exposure.
- calib_sources
astropy.table.Table Per-visit catalog of measurements to get ‘calib_*’ flags from.
- preliminary_mask
lsst.afw.image.Mask, optional An input Mask to copy individual mask planes from.
- id_generator
lsst.meas.base.IdGenerator, optional Object that generates source IDs and provides random seeds.
- background_to_photometric_ratio
lsst.afw.image.ImageF, optional Background to photometric ratio image, to convert between photometric flattened and background flattened image.
- result
lsst.pipe.base.Struct, optional Result struct that is modified to allow saving of partial outputs for some failure conditions. If the task completes successfully, this is also returned.
Returns#
- result
lsst.pipe.base.Struct Results as a struct with attributes:
exposureCalibrated exposure, with pixels in nJy units. (
lsst.afw.image.Exposure)sourcesSources that were measured on the exposure, with calibrated fluxes and magnitudes. (
astropy.table.Table)sources_footprintsFootprints of sources that were measured on the exposure. (
lsst.afw.table.SourceCatalog)backgroundTotal background that was fit to, and subtracted from the exposure when detecting
sources, in the same nJy units asexposure. (lsst.afw.math.BackgroundList)
- exposures
- runQuantum(butlerQC, inputRefs, outputRefs)#
Do butler IO and transform to provide in memory objects for tasks
runmethod.Parameters#
- butlerQC
QuantumContext A butler which is specialized to operate in the context of a
lsst.daf.butler.Quantum.- inputRefs
InputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined input/prerequisite connections.- outputRefs
OutputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined output connections.
- butlerQC