CalibrateImageTask#
- class lsst.pipe.tasks.calibrateImage.CalibrateImageTask(initial_stars_schema=None, **kwargs)#
Bases:
PipelineTaskCompute the PSF, aperture corrections, astrometric and photometric calibrations, and summary statistics for a single science exposure, and produce a catalog of brighter stars that were used to calibrate it.
Parameters#
- initial_stars_schema
lsst.afw.table.Schema Schema of the initial_stars output catalog.
Methods Summary
run(*, exposures[, id_generator, result, ...])Find stars and perform psf measurement, then do a deeper detection and measurement and calibrate astrometry and photometry from that.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Methods Documentation
- run(*, exposures, id_generator=None, result=None, background_flat=None, illumination_correction=None, camera_model=None)#
Find stars and perform psf measurement, then do a deeper detection and measurement and calibrate astrometry and photometry from that.
Parameters#
- exposures
lsst.afw.image.Exposureorlist[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.
- id_generator
lsst.meas.base.IdGenerator, optional Object that generates source IDs and provides random seeds.
- 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.
- background_flat
lsst.afw.image.Exposure, optional Background flat-field image.
- illumination_correction
lsst.afw.image.Exposure, optional Illumination correction image.
- camera_model
lsst.afw.cameraGeom.Camera, optional Camera to be used if constructing updated WCS.
Returns#
- result
lsst.pipe.base.Struct Results as a struct with attributes:
exposureCalibrated exposure, with pixels in nJy units. (
lsst.afw.image.Exposure)starsStars that were used to calibrate the exposure, with calibrated fluxes and magnitudes. (
astropy.table.Table)stars_footprintsFootprints of stars that were used to calibrate the exposure. (
lsst.afw.table.SourceCatalog)psf_starsStars that were used to determine the image PSF. (
astropy.table.Table)psf_stars_footprintsFootprints of stars that were used to determine the image PSF. (
lsst.afw.table.SourceCatalog)backgroundBackground that was fit to the exposure when detecting
stars. (lsst.afw.math.BackgroundList)applied_photo_calibPhotometric calibration that was fit to the star catalog and applied to the exposure. (
lsst.afw.image.PhotoCalib) This isNoneifconfig.do_calibrate_pixelsisFalse.astrometry_matchesReference catalog stars matches used in the astrometric fit. (
list[lsst.afw.table.ReferenceMatch] orlsst.afw.table.BaseCatalog).photometry_matchesReference catalog stars matches used in the photometric fit. (
list[lsst.afw.table.ReferenceMatch] orlsst.afw.table.BaseCatalog).maskCopy of the mask plane of
exposure. (lsst.afw.image.Mask)
- 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
- initial_stars_schema