lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.calibrateImage.CalibrateImageConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.calibrateImage.CalibrateImageConfig:
lsst.pipe.tasks.calibrateImage.CalibrateImageConnections

Public Member Functions

 setDefaults (self)
 validate (self)
Public Member Functions inherited from lsst.pipe.tasks.calibrateImage.CalibrateImageConnections
 __init__ (self, *, config=None)

Static Public Attributes

 optional_outputs
 id_generator = lsst.meas.base.DetectorVisitIdGeneratorConfig.make_field()
 snap_combine
 install_simple_psf
 compute_shapelet_decomposition
 do_compute_shapelet_decomposition
 psf_repair
 psf_subtract_background
 psf_detection
 do_adaptive_threshold_detection
 do_remeasure_star_background
 psf_adaptive_threshold_detection
 psf_source_measurement
 psf_measure_psf
 psf_normalized_calibration_flux
 measure_aperture_correction
 star_background
 star_background_min_footprints
 star_background_peak_fraction
 star_detection
 star_sky_sources
 do_downsample_footprints
 downsample_max_footprints
 star_deblend
 star_measurement
 star_normalized_calibration_flux
 star_apply_aperture_correction
 star_catalog_calculation
 star_set_primary_flags
 star_selector
 astrometry
 astrometry_ref_loader
 photometry
 photometry_ref_loader
 doMaskDiffractionSpikes
 diffractionSpikeMask
 compute_summary_stats
 do_illumination_correction
 do_calibrate_pixels
 do_include_astrometric_errors
 background_stats_ignored_pixel_masks
 run_sattle
 sattle_historical
 useButlerExposureRegion
 useButlerCamera
 background_stats_flux_column
 instrumental_unit
 output_image_type
Static Public Attributes inherited from lsst.pipe.tasks.calibrateImage.CalibrateImageConnections
 astrometry_ref_cat
 photometry_ref_cat
 camera_model
 exposures
 background_flat
 illumination_correction
 initial_stars_schema
 exposure
 stars
 stars_footprints
 applied_photo_calib
 background
 background_to_photometric_ratio
 mask
 psf_stars_footprints
 psf_stars
 astrometry_matches
 photometry_matches

Member Data Documentation

◆ astrometry

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.astrometry
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.astrom.AstrometryTask,
doc="Task to perform astrometric calibration to fit a WCS.",
)

◆ astrometry_ref_loader

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.astrometry_ref_loader
static
Initial value:
= pexConfig.ConfigField(
dtype=lsst.meas.algorithms.LoadReferenceObjectsConfig,
doc="Configuration of reference object loader for astrometric fit.",
)

◆ background_stats_flux_column

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.background_stats_flux_column
static
Initial value:
= pexConfig.Field(
dtype=str,
default="base_CircularApertureFlux_12_0_flux",
doc="Column used to generate post-subtracted background stats."
)

◆ background_stats_ignored_pixel_masks

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.background_stats_ignored_pixel_masks
static
Initial value:
= pexConfig.ListField(
dtype=str,
default=["SAT", "SUSPECT", "SPIKE"],
doc="Pixel mask flags to ignore when calculating post-sky-subtraction "
"background statistics. These are added to those ignored by the "
"meas.algorithms.SubtractBackgroundConfig algorithm."
)

◆ compute_shapelet_decomposition

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.compute_shapelet_decomposition
static
Initial value:
= pexConfig.ConfigurableField(
target=ComputeRoughPsfShapeletsTask,
doc="Task to compute a rough shapelet expansion of the PSF from a set "
"of high S/N detections.",
)

◆ compute_summary_stats

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.compute_summary_stats
static
Initial value:
= pexConfig.ConfigurableField(
target=computeExposureSummaryStats.ComputeExposureSummaryStatsTask,
doc="Task to to compute summary statistics on the calibrated exposure."
)

◆ diffractionSpikeMask

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.diffractionSpikeMask
static
Initial value:
= pexConfig.ConfigurableField(
target=diffractionSpikeMask.DiffractionSpikeMaskTask,
doc="Task to identify and mask the diffraction spikes of bright stars.",
)

◆ do_adaptive_threshold_detection

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_adaptive_threshold_detection
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Implement the adaptive detection thresholding approach?",
)

◆ do_calibrate_pixels

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_calibrate_pixels
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc=(
"If True, apply the photometric calibration to the image pixels "
"and background model, and attach an identity PhotoCalib to "
"the output image to reflect this. If False`, leave the image "
"and background uncalibrated and attach the PhotoCalib that maps "
"them to physical units."
)
)

◆ do_compute_shapelet_decomposition

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_compute_shapelet_decomposition
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Compute a rough shapelet expansion of the PSF stars?",
)

◆ do_downsample_footprints

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_downsample_footprints
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="Downsample footprints prior to deblending to optimize speed?",
)

◆ do_illumination_correction

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_illumination_correction
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="If True, apply the illumination correction. This assumes that the "
"input image has already been flat-fielded such that it is suitable "
"for background subtraction.",
)

◆ do_include_astrometric_errors

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_include_astrometric_errors
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="If True, include astrometric errors in the output catalog.",
)

◆ do_remeasure_star_background

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.do_remeasure_star_background
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Do iterative star background measurement (ignored if do_adaptive_threshold_detection is False).",
)

◆ doMaskDiffractionSpikes

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.doMaskDiffractionSpikes
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="If True, load the photometric reference catalog again but select "
"only bright stars. Use the bright star catalog to set the SPIKE "
"mask for regions likely contaminated by diffraction spikes.",
)

◆ downsample_max_footprints

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.downsample_max_footprints
static
Initial value:
= pexConfig.Field(
dtype=int,
default=1000,
doc="Maximum number of non-sky-source footprints to use if do_downsample_footprints is True,",
)

◆ install_simple_psf

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.install_simple_psf
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.installGaussianPsf.InstallGaussianPsfTask,
doc="Task to install a simple PSF model into the input exposure to use "
"when detecting bright sources for PSF estimation.",
)

◆ instrumental_unit

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.instrumental_unit
static
Initial value:
= pexConfig.Field(
dtype=str,
default="electron",
doc="Units of the input postISRCCD pixels, used for the output photometric_scaling and, if"
" do_calibrate_pixels=False, the output image."
" Used only when output_image_type='future'.",
)

◆ measure_aperture_correction

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.measure_aperture_correction
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.measureApCorr.MeasureApCorrTask,
doc="Task to compute the aperture correction from the bright stars."
)

◆ optional_outputs

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.optional_outputs
static
Initial value:
= pexConfig.ListField(
doc="Which optional outputs to save (as their connection name)?",
dtype=str,
# TODO: note somewhere to disable this for benchmarking, but should
# we always have it on for production runs?
default=["psf_stars", "psf_stars_footprints", "astrometry_matches", "photometry_matches", "mask"],
optional=False
)

◆ output_image_type

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.output_image_type
static
Initial value:
= pexConfig.ChoiceField[str](
"Which image type to use for the output visit image."
" In 'future' mode the background and the applied photometric"
" calibration are components of the image instead of being written as"
" their own datasets. 'future' only takes effect in a repository"
" where initial_pvi is freshly registered with the VisitImage storage"
" class, because the registered storage class wins on write.",
allowed={
"legacy": "Write as a lsst.afw.image.Exposure.",
"future": "Write as a lsst.images.VisitImage.",
},
optional=False,
default="legacy",
)

◆ photometry

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.photometry
static
Initial value:
= pexConfig.ConfigurableField(
target=photoCal.PhotoCalTask,
doc="Task to perform photometric calibration to fit a PhotoCalib.",
)

◆ photometry_ref_loader

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.photometry_ref_loader
static
Initial value:
= pexConfig.ConfigField(
dtype=lsst.meas.algorithms.LoadReferenceObjectsConfig,
doc="Configuration of reference object loader for photometric fit.",
)

◆ psf_adaptive_threshold_detection

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_adaptive_threshold_detection
static
Initial value:
= pexConfig.ConfigurableField(
target=AdaptiveThresholdDetectionTask,
doc="Task to adaptively detect sources for PSF determination.",
)

◆ psf_detection

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_detection
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.SourceDetectionTask,
doc="Task to detect sources for PSF determination."
)

◆ psf_measure_psf

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_measure_psf
static
Initial value:
= pexConfig.ConfigurableField(
target=measurePsf.MeasurePsfTask,
doc="Task to measure the psf on bright sources."
)

◆ psf_normalized_calibration_flux

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_normalized_calibration_flux
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.NormalizedCalibrationFluxTask,
doc="Task to normalize the calibration flux (e.g. compensated tophats) "
"for the bright stars used for psf estimation.",
)

◆ psf_repair

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_repair
static
Initial value:
= pexConfig.ConfigurableField(
target=repair.RepairTask,
doc="Task to repair cosmic rays on the exposure before PSF determination.",
)

◆ psf_source_measurement

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_source_measurement
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.base.SingleFrameMeasurementTask,
doc="Task to measure sources to be used for psf estimation."
)

◆ psf_subtract_background

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.psf_subtract_background
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.SubtractBackgroundTask,
doc="Task to perform initial background subtraction, before first detection pass.",
)

◆ run_sattle

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.run_sattle
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="If True, the sattle service will populate a cache for later use "
"in ip_diffim.detectAndMeasure alert verification."
)

◆ sattle_historical

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.sattle_historical
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="If re-running a pipeline that requires sattle, this should be set "
"to True. This will populate sattle's cache with the historic data "
"closest in time to the exposure.",
)

◆ snap_combine

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.snap_combine
static
Initial value:
= pexConfig.ConfigurableField(
target=snapCombine.SnapCombineTask,
doc="Task to combine two snaps to make one exposure.",
)

◆ star_apply_aperture_correction

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_apply_aperture_correction
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.base.ApplyApCorrTask,
doc="Task to apply aperture corrections to the selected stars."
)

◆ star_background

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_background
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.SubtractBackgroundTask,
doc="Task to perform final background subtraction, just before photoCal.",
)

◆ star_background_min_footprints

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_background_min_footprints
static
Initial value:
= pexConfig.Field(
dtype=int,
default=3,
doc="Minimum number of footprints in the detection mask for star_background measurement. "
"This number will get adjusted to the fraction config.star_background_peak_fraction "
"of the detected peaks if that number is larger. If the number of footprints is less "
"than the minimum, the detection threshold is iteratively increased until the "
"threshold is met.",
)

◆ star_background_peak_fraction

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_background_peak_fraction
static
Initial value:
= pexConfig.Field(
dtype=float,
default=0.01,
doc="The minimum number of footprints in the detection mask for star_background measurement. "
"gets set to the maximum of this fraction of the detected peaks and the value set in "
"config.star_background_min_footprints. If the number of footprints is less than the "
"current minimum set, the detection threshold is iteratively increased until the "
"threshold is met.",
)

◆ star_catalog_calculation

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_catalog_calculation
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.base.CatalogCalculationTask,
doc="Task to compute extendedness values on the star catalog, "
"for the star selector to remove extended sources."
)

◆ star_deblend

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_deblend
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.deblender.SourceDeblendTask,
doc="Split blended sources into their components."
)

◆ star_detection

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_detection
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.SourceDetectionTask,
doc="Task to detect stars to return in the output catalog."
)

◆ star_measurement

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_measurement
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.base.SingleFrameMeasurementTask,
doc="Task to measure stars to return in the output catalog."
)

◆ star_normalized_calibration_flux

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_normalized_calibration_flux
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.NormalizedCalibrationFluxTask,
doc="Task to apply the normalization for calibration fluxes (e.g. compensated tophats) "
"for the final output star catalog.",
)

◆ star_selector

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_selector
static
Initial value:
= lsst.meas.algorithms.sourceSelectorRegistry.makeField(
default="science",
doc="Task to select reliable stars to use for calibration."
)

◆ star_set_primary_flags

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_set_primary_flags
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.setPrimaryFlags.SetPrimaryFlagsTask,
doc="Task to add isPrimary to the catalog."
)

◆ star_sky_sources

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.star_sky_sources
static
Initial value:
= pexConfig.ConfigurableField(
target=lsst.meas.algorithms.SkyObjectsTask,
doc="Task to generate sky sources ('empty' regions where there are no detections).",
)

◆ useButlerCamera

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.useButlerCamera
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="If True, use a camera distortion model generated elsewhere in "
"the pipeline combined with the telescope boresight as a starting "
"point for fitting the WCS, instead of using the WCS attached to "
"the exposure, which is generated from the boresight and the "
"camera model from the obs_* package."
)

◆ useButlerExposureRegion

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.useButlerExposureRegion
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="If True, use the exposure region stored in the butler as the "
"region for reference catalog trimming. If False, the reference loader "
"trimming will be set by the loader (typically from a padded version of "
"the detector's bounding box + current WCS)."
)

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/calibrateImage.py