LSST Applications g0603fd7c41+501e3db9f9,g0aad566f14+23d8574c86,g0dd44d6229+a1a4c8b791,g2079a07aa2+86d27d4dc4,g2305ad1205+a62672bbc1,g2bbee38e9b+047b288a59,g337abbeb29+047b288a59,g33d1c0ed96+047b288a59,g3a166c0a6a+047b288a59,g3d1719c13e+23d8574c86,g487adcacf7+cb7fd919b2,g4be5004598+23d8574c86,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+4a9e435310,g63cd9335cc+585e252eca,g858d7b2824+23d8574c86,g88963caddf+0cb8e002cc,g99cad8db69+43388bcaec,g9ddcbc5298+9a081db1e4,ga1e77700b3+a912195c07,gae0086650b+585e252eca,gb0e22166c9+60f28cb32d,gb2522980b2+793639e996,gb3a676b8dc+b4feba26a1,gb4b16eec92+63f8520565,gba4ed39666+c2a2e4ac27,gbb8dafda3b+a5d255a82e,gc120e1dc64+d820f8acdb,gc28159a63d+047b288a59,gc3e9b769f7+f4f1cc6b50,gcf0d15dbbd+a1a4c8b791,gdaeeff99f8+f9a426f77a,gdb0af172c8+b6d5496702,ge79ae78c31+047b288a59,w.2024.19
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
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)
 

Static Public Attributes

 optional_outputs
 
 id_generator = lsst.meas.base.DetectorVisitIdGeneratorConfig.make_field()
 
 snap_combine
 
 install_simple_psf
 
 psf_repair
 
 psf_subtract_background
 
 psf_detection
 
 psf_source_measurement
 
 psf_measure_psf
 
 measure_aperture_correction
 
 star_detection
 
 star_sky_sources
 
 star_deblend
 
 star_measurement
 
 star_apply_aperture_correction
 
 star_catalog_calculation
 
 star_set_primary_flags
 
 star_selector
 
 astrometry
 
 astrometry_ref_loader
 
 photometry
 
 photometry_ref_loader
 
 compute_summary_stats
 

Detailed Description

Definition at line 149 of file calibrateImage.py.

Member Function Documentation

◆ setDefaults()

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.setDefaults ( self)

Definition at line 259 of file calibrateImage.py.

259 def setDefaults(self):
260 super().setDefaults()
261
262 # Use a very broad PSF here, to throughly reject CRs.
263 # TODO investigation: a large initial psf guess may make stars look
264 # like CRs for very good seeing images.
265 self.install_simple_psf.fwhm = 4
266
267 # S/N>=50 sources for PSF determination, but detection to S/N=5.
268 # The thresholdValue sets the minimum flux in a pixel to be included in the
269 # footprint, while peaks are only detected when they are above
270 # thresholdValue * includeThresholdMultiplier. The low thresholdValue
271 # ensures that the footprints are large enough for the noise replacer
272 # to mask out faint undetected neighbors that are not to be measured.
273 self.psf_detection.thresholdValue = 5.0
274 self.psf_detection.includeThresholdMultiplier = 10.0
275 # TODO investigation: Probably want False here, but that may require
276 # tweaking the background spatial scale, to make it small enough to
277 # prevent extra peaks in the wings of bright objects.
278 self.psf_detection.doTempLocalBackground = False
279 # NOTE: we do want reEstimateBackground=True in psf_detection, so that
280 # each measurement step is done with the best background available.
281
282 # Minimal measurement plugins for PSF determination.
283 # TODO DM-39203: We can drop GaussianFlux and PsfFlux, if we use
284 # shapeHSM/moments for star/galaxy separation.
285 # TODO DM-39203: we can remove aperture correction from this task once
286 # we are using the shape-based star/galaxy code.
287 self.psf_source_measurement.plugins = ["base_PixelFlags",
288 "base_SdssCentroid",
289 "ext_shapeHSM_HsmSourceMoments",
290 "base_CircularApertureFlux",
291 "base_GaussianFlux",
292 "base_PsfFlux",
293 ]
294 self.psf_source_measurement.slots.shape = "ext_shapeHSM_HsmSourceMoments"
295 # Only measure apertures we need for PSF measurement.
296 self.psf_source_measurement.plugins["base_CircularApertureFlux"].radii = [12.0]
297 # TODO DM-40843: Remove this line once this is the psfex default.
298 self.psf_measure_psf.psfDeterminer["psfex"].photometricFluxField = \
299 "base_CircularApertureFlux_12_0_instFlux"
300
301 # No extendeness information available: we need the aperture
302 # corrections to determine that.
303 self.measure_aperture_correction.sourceSelector["science"].doUnresolved = False
304 self.measure_aperture_correction.sourceSelector["science"].flags.good = ["calib_psf_used"]
305 self.measure_aperture_correction.sourceSelector["science"].flags.bad = []
306
307 # Detection for good S/N for astrometry/photometry and other
308 # downstream tasks; detection mask to S/N>=5, but S/N>=10 peaks.
309 self.star_detection.thresholdValue = 5.0
310 self.star_detection.includeThresholdMultiplier = 2.0
311 self.star_measurement.plugins = ["base_PixelFlags",
312 "base_SdssCentroid",
313 "ext_shapeHSM_HsmSourceMoments",
314 'ext_shapeHSM_HsmPsfMoments',
315 "base_GaussianFlux",
316 "base_PsfFlux",
317 "base_CircularApertureFlux",
318 "base_ClassificationSizeExtendedness",
319 ]
320 self.star_measurement.slots.psfShape = "ext_shapeHSM_HsmPsfMoments"
321 self.star_measurement.slots.shape = "ext_shapeHSM_HsmSourceMoments"
322 # Only measure the apertures we need for star selection.
323 self.star_measurement.plugins["base_CircularApertureFlux"].radii = [12.0]
324
325 # Select isolated stars with reliable measurements and no bad flags.
326 self.star_selector["science"].doFlags = True
327 self.star_selector["science"].doUnresolved = True
328 self.star_selector["science"].doSignalToNoise = True
329 self.star_selector["science"].doIsolated = True
330 self.star_selector["science"].signalToNoise.minimum = 10.0
331 # Keep sky sources in the output catalog, even though they aren't
332 # wanted for calibration.
333 self.star_selector["science"].doSkySources = True
334
335 # Use the affine WCS fitter (assumes we have a good camera geometry).
336 self.astrometry.wcsFitter.retarget(lsst.meas.astrom.FitAffineWcsTask)
337 # phot_g_mean is the primary Gaia band for all input bands.
338 self.astrometry_ref_loader.anyFilterMapsToThis = "phot_g_mean"
339
340 # Only reject sky sources; we already selected good stars.
341 self.astrometry.sourceSelector["science"].doFlags = True
342 self.astrometry.sourceSelector["science"].flags.bad = ["sky_source"]
343 self.photometry.match.sourceSelection.doFlags = True
344 self.photometry.match.sourceSelection.flags.bad = ["sky_source"]
345
346 # All sources should be good for PSF summary statistics.
347 # TODO: These should both be changed to calib_psf_used with DM-41640.
348 self.compute_summary_stats.starSelection = "calib_photometry_used"
349 self.compute_summary_stats.starSelector.flags.good = ["calib_photometry_used"]
350
351

Member Data Documentation

◆ astrometry

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

Definition at line 237 of file calibrateImage.py.

◆ astrometry_ref_loader

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

Definition at line 241 of file calibrateImage.py.

◆ 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."
)

Definition at line 254 of file calibrateImage.py.

◆ id_generator

lsst.pipe.tasks.calibrateImage.CalibrateImageConfig.id_generator = lsst.meas.base.DetectorVisitIdGeneratorConfig.make_field()
static

Definition at line 160 of file calibrateImage.py.

◆ install_simple_psf

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

Definition at line 168 of file calibrateImage.py.

◆ measure_aperture_correction

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

Definition at line 196 of file calibrateImage.py.

◆ 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"],
optional=True
)

Definition at line 150 of file calibrateImage.py.

◆ 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.",
)

Definition at line 245 of file calibrateImage.py.

◆ photometry_ref_loader

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

Definition at line 249 of file calibrateImage.py.

◆ psf_detection

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

Definition at line 181 of file calibrateImage.py.

◆ 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."
)

Definition at line 189 of file calibrateImage.py.

◆ 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.",
)

Definition at line 173 of file calibrateImage.py.

◆ psf_source_measurement

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

Definition at line 185 of file calibrateImage.py.

◆ psf_subtract_background

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

Definition at line 177 of file calibrateImage.py.

◆ 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.",
)

Definition at line 162 of file calibrateImage.py.

◆ star_apply_aperture_correction

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

Definition at line 218 of file calibrateImage.py.

◆ star_catalog_calculation

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

Definition at line 222 of file calibrateImage.py.

◆ star_deblend

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

Definition at line 210 of file calibrateImage.py.

◆ star_detection

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

Definition at line 202 of file calibrateImage.py.

◆ star_measurement

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

Definition at line 214 of file calibrateImage.py.

◆ star_selector

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

Definition at line 231 of file calibrateImage.py.

◆ star_set_primary_flags

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

Definition at line 227 of file calibrateImage.py.

◆ star_sky_sources

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

Definition at line 206 of file calibrateImage.py.


The documentation for this class was generated from the following file: