LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.calibrate.CalibrateConfig Class Reference
Inheritance diagram for lsst.pipe.tasks.calibrate.CalibrateConfig:
lsst.pipe.tasks.calibrate.CalibrateConnections

Public Member Functions

def setDefaults (self)
 
def validate (self)
 

Static Public Attributes

 doWrite
 
 doWriteHeavyFootprintsInSources
 
 doWriteMatches
 
 doWriteMatchesDenormalized
 
 doAstrometry
 
 astromRefObjLoader
 
 photoRefObjLoader
 
 astrometry
 
 requireAstrometry
 
 doPhotoCal
 
 requirePhotoCal
 
 photoCal
 
 icSourceFieldsToCopy
 
 matchRadiusPix
 
 checkUnitsParseStrict
 
 detection
 
 doDeblend
 
 deblend
 
 doSkySources
 
 skySources
 
 measurement
 
 setPrimaryFlags
 
 doApCorr
 
 applyApCorr
 
 catalogCalculation
 
 doInsertFakes
 
 insertFakes
 
 doComputeSummaryStats
 
 computeSummaryStats
 
 doWriteExposure
 
 icSourceSchema
 
 outputSchema
 
 exposure
 
 background
 
 icSourceCat
 
 astromRefCat
 
 photoRefCat
 
 outputExposure
 
 outputCat
 
 outputBackground
 
 matches
 
 matchesDenormalized
 

Detailed Description

Config for CalibrateTask

Definition at line 153 of file calibrate.py.

Member Function Documentation

◆ setDefaults()

def lsst.pipe.tasks.calibrate.CalibrateConfig.setDefaults (   self)

Definition at line 308 of file calibrate.py.

308  def setDefaults(self):
309  super().setDefaults()
310  self.detection.doTempLocalBackground = False
311  self.deblend.maxFootprintSize = 2000
312  self.measurement.plugins.names |= ["base_LocalPhotoCalib", "base_LocalWcs"]
313 

◆ validate()

def lsst.pipe.tasks.calibrate.CalibrateConfig.validate (   self)

Definition at line 314 of file calibrate.py.

314  def validate(self):
315  super().validate()
316  astromRefCatGen2 = getattr(self.astromRefObjLoader, "ref_dataset_name", None)
317  if astromRefCatGen2 is not None and astromRefCatGen2 != self.connections.astromRefCat:
318  raise ValueError(
319  f"Gen2 ({astromRefCatGen2}) and Gen3 ({self.connections.astromRefCat}) astrometry reference "
320  f"catalogs are different. These options must be kept in sync until Gen2 is retired."
321  )
322  photoRefCatGen2 = getattr(self.photoRefObjLoader, "ref_dataset_name", None)
323  if photoRefCatGen2 is not None and photoRefCatGen2 != self.connections.photoRefCat:
324  raise ValueError(
325  f"Gen2 ({photoRefCatGen2}) and Gen3 ({self.connections.photoRefCat}) photometry reference "
326  f"catalogs are different. These options must be kept in sync until Gen2 is retired."
327  )
328 
329 

Member Data Documentation

◆ applyApCorr

lsst.pipe.tasks.calibrate.CalibrateConfig.applyApCorr
static
Initial value:
= pexConfig.ConfigurableField(
target=ApplyApCorrTask,
doc="Subtask to apply aperture corrections"
)

Definition at line 271 of file calibrate.py.

◆ astrometry

lsst.pipe.tasks.calibrate.CalibrateConfig.astrometry
static
Initial value:
= pexConfig.ConfigurableField(
target=AstrometryTask,
doc="Perform astrometric calibration to refine the WCS",
)

Definition at line 191 of file calibrate.py.

◆ astromRefCat

lsst.pipe.tasks.calibrate.CalibrateConnections.astromRefCat
staticinherited
Initial value:
= cT.PrerequisiteInput(
doc="Reference catalog to use for astrometry",
name="cal_ref_cat",
storageClass="SimpleCatalog",
dimensions=("skypix",),
deferLoad=True,
multiple=True,
)

Definition at line 86 of file calibrate.py.

◆ astromRefObjLoader

lsst.pipe.tasks.calibrate.CalibrateConfig.astromRefObjLoader
static
Initial value:
= pexConfig.ConfigurableField(
target=LoadIndexedReferenceObjectsTask,
doc="reference object loader for astrometric calibration",
)

Definition at line 183 of file calibrate.py.

◆ background

lsst.pipe.tasks.calibrate.CalibrateConnections.background
staticinherited
Initial value:
= cT.Input(
doc="Backgrounds determined by characterize task",
name="icExpBackground",
storageClass="Background",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 72 of file calibrate.py.

◆ catalogCalculation

lsst.pipe.tasks.calibrate.CalibrateConfig.catalogCalculation
static
Initial value:
= pexConfig.ConfigurableField(
target=CatalogCalculationTask,
doc="Subtask to run catalogCalculation plugins on catalog"
)

Definition at line 278 of file calibrate.py.

◆ checkUnitsParseStrict

lsst.pipe.tasks.calibrate.CalibrateConfig.checkUnitsParseStrict
static
Initial value:
= pexConfig.Field(
doc=("Strictness of Astropy unit compatibility check, can be 'raise', "
"'warn' or 'silent'"),
dtype=str,
default="raise",
)

Definition at line 229 of file calibrate.py.

◆ computeSummaryStats

lsst.pipe.tasks.calibrate.CalibrateConfig.computeSummaryStats
static
Initial value:
= pexConfig.ConfigurableField(
target=ComputeExposureSummaryStatsTask,
doc="Subtask to run computeSummaryStats on exposure"
)

Definition at line 297 of file calibrate.py.

◆ deblend

lsst.pipe.tasks.calibrate.CalibrateConfig.deblend
static
Initial value:
= pexConfig.ConfigurableField(
target=SourceDeblendTask,
doc="Split blended sources into their components"
)

Definition at line 244 of file calibrate.py.

◆ detection

lsst.pipe.tasks.calibrate.CalibrateConfig.detection
static
Initial value:
= pexConfig.ConfigurableField(
target=SourceDetectionTask,
doc="Detect sources"
)

Definition at line 235 of file calibrate.py.

◆ doApCorr

lsst.pipe.tasks.calibrate.CalibrateConfig.doApCorr
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Run subtask to apply aperture correction"
)

Definition at line 266 of file calibrate.py.

◆ doAstrometry

lsst.pipe.tasks.calibrate.CalibrateConfig.doAstrometry
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Perform astrometric calibration?",
)

Definition at line 178 of file calibrate.py.

◆ doComputeSummaryStats

lsst.pipe.tasks.calibrate.CalibrateConfig.doComputeSummaryStats
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Run subtask to measure exposure summary statistics?"
)

Definition at line 292 of file calibrate.py.

◆ doDeblend

lsst.pipe.tasks.calibrate.CalibrateConfig.doDeblend
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Run deblender input exposure"
)

Definition at line 239 of file calibrate.py.

◆ doInsertFakes

lsst.pipe.tasks.calibrate.CalibrateConfig.doInsertFakes
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc="Run fake sources injection task"
)

Definition at line 282 of file calibrate.py.

◆ doPhotoCal

lsst.pipe.tasks.calibrate.CalibrateConfig.doPhotoCal
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Perform phometric calibration?",
)

Definition at line 201 of file calibrate.py.

◆ doSkySources

lsst.pipe.tasks.calibrate.CalibrateConfig.doSkySources
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Generate sky sources?",
)

Definition at line 248 of file calibrate.py.

◆ doWrite

lsst.pipe.tasks.calibrate.CalibrateConfig.doWrite
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Save calibration results?",
)

Definition at line 155 of file calibrate.py.

◆ doWriteExposure

lsst.pipe.tasks.calibrate.CalibrateConfig.doWriteExposure
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Write the calexp? If fakes have been added then we do not want to write out the calexp as a "
"normal calexp but as a fakes_calexp."
)

Definition at line 301 of file calibrate.py.

◆ doWriteHeavyFootprintsInSources

lsst.pipe.tasks.calibrate.CalibrateConfig.doWriteHeavyFootprintsInSources
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Include HeavyFootprint data in source table? If false then heavy "
"footprints are saved as normal footprints, which saves some space"
)

Definition at line 160 of file calibrate.py.

◆ doWriteMatches

lsst.pipe.tasks.calibrate.CalibrateConfig.doWriteMatches
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc="Write reference matches (ignored if doWrite or doAstrometry false)?",
)

Definition at line 166 of file calibrate.py.

◆ doWriteMatchesDenormalized

lsst.pipe.tasks.calibrate.CalibrateConfig.doWriteMatchesDenormalized
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=False,
doc=("Write reference matches in denormalized format? "
"This format uses more disk space, but is more convenient to "
"read. Ignored if doWriteMatches=False or doWrite=False."),
)

Definition at line 171 of file calibrate.py.

◆ exposure

lsst.pipe.tasks.calibrate.CalibrateConnections.exposure
staticinherited
Initial value:
= cT.Input(
doc="Input image to calibrate",
name="icExp",
storageClass="ExposureF",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 65 of file calibrate.py.

◆ icSourceCat

lsst.pipe.tasks.calibrate.CalibrateConnections.icSourceCat
staticinherited
Initial value:
= cT.Input(
doc="Source catalog created by characterize task",
name="icSrc",
storageClass="SourceCatalog",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 79 of file calibrate.py.

◆ icSourceFieldsToCopy

lsst.pipe.tasks.calibrate.CalibrateConfig.icSourceFieldsToCopy
static
Initial value:
= pexConfig.ListField(
dtype=str,
default=("calib_psf_candidate", "calib_psf_used", "calib_psf_reserved"),
doc=("Fields to copy from the icSource catalog to the output catalog "
"for matching sources Any missing fields will trigger a "
"RuntimeError exception. Ignored if icSourceCat is not provided.")
)

Definition at line 216 of file calibrate.py.

◆ icSourceSchema

lsst.pipe.tasks.calibrate.CalibrateConnections.icSourceSchema
staticinherited
Initial value:
= cT.InitInput(
doc="Schema produced by characterize image task, used to initialize this task",
name="icSrc_schema",
storageClass="SourceCatalog",
)

Definition at line 53 of file calibrate.py.

◆ insertFakes

lsst.pipe.tasks.calibrate.CalibrateConfig.insertFakes
static
Initial value:
= pexConfig.ConfigurableField(
target=BaseFakeSourcesTask,
doc="Injection of fake sources for testing purposes (must be "
"retargeted)"
)

Definition at line 287 of file calibrate.py.

◆ matches

lsst.pipe.tasks.calibrate.CalibrateConnections.matches
staticinherited
Initial value:
= cT.Output(
doc="Source/refObj matches from the astrometry solver",
name="srcMatch",
storageClass="Catalog",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 125 of file calibrate.py.

◆ matchesDenormalized

lsst.pipe.tasks.calibrate.CalibrateConnections.matchesDenormalized
staticinherited
Initial value:
= cT.Output(
doc="Denormalized matches from astrometry solver",
name="srcMatchFull",
storageClass="Catalog",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 132 of file calibrate.py.

◆ matchRadiusPix

lsst.pipe.tasks.calibrate.CalibrateConfig.matchRadiusPix
static
Initial value:
= pexConfig.Field(
dtype=float,
default=3,
doc=("Match radius for matching icSourceCat objects to sourceCat "
"objects (pixels)"),
)

Definition at line 223 of file calibrate.py.

◆ measurement

lsst.pipe.tasks.calibrate.CalibrateConfig.measurement
static
Initial value:
= pexConfig.ConfigurableField(
target=SingleFrameMeasurementTask,
doc="Measure sources"
)

Definition at line 257 of file calibrate.py.

◆ outputBackground

lsst.pipe.tasks.calibrate.CalibrateConnections.outputBackground
staticinherited
Initial value:
= cT.Output(
doc="Background models estimated in calibration task",
name="calexpBackground",
storageClass="Background",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 118 of file calibrate.py.

◆ outputCat

lsst.pipe.tasks.calibrate.CalibrateConnections.outputCat
staticinherited
Initial value:
= cT.Output(
doc="Source catalog produced in calibrate task",
name="src",
storageClass="SourceCatalog",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 111 of file calibrate.py.

◆ outputExposure

lsst.pipe.tasks.calibrate.CalibrateConnections.outputExposure
staticinherited
Initial value:
= cT.Output(
doc="Exposure after running calibration task",
name="calexp",
storageClass="ExposureF",
dimensions=("instrument", "visit", "detector"),
)

Definition at line 104 of file calibrate.py.

◆ outputSchema

lsst.pipe.tasks.calibrate.CalibrateConnections.outputSchema
staticinherited
Initial value:
= cT.InitOutput(
doc="Schema after CalibrateTask has been initialized",
name="src_schema",
storageClass="SourceCatalog",
)

Definition at line 59 of file calibrate.py.

◆ photoCal

lsst.pipe.tasks.calibrate.CalibrateConfig.photoCal
static
Initial value:
= pexConfig.ConfigurableField(
target=PhotoCalTask,
doc="Perform photometric calibration",
)

Definition at line 212 of file calibrate.py.

◆ photoRefCat

lsst.pipe.tasks.calibrate.CalibrateConnections.photoRefCat
staticinherited
Initial value:
= cT.PrerequisiteInput(
doc="Reference catalog to use for photometric calibration",
name="cal_ref_cat",
storageClass="SimpleCatalog",
dimensions=("skypix",),
deferLoad=True,
multiple=True
)

Definition at line 95 of file calibrate.py.

◆ photoRefObjLoader

lsst.pipe.tasks.calibrate.CalibrateConfig.photoRefObjLoader
static
Initial value:
= pexConfig.ConfigurableField(
target=LoadIndexedReferenceObjectsTask,
doc="reference object loader for photometric calibration",
)

Definition at line 187 of file calibrate.py.

◆ requireAstrometry

lsst.pipe.tasks.calibrate.CalibrateConfig.requireAstrometry
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc=("Raise an exception if astrometry fails? Ignored if doAstrometry "
"false."),
)

Definition at line 195 of file calibrate.py.

◆ requirePhotoCal

lsst.pipe.tasks.calibrate.CalibrateConfig.requirePhotoCal
static
Initial value:
= pexConfig.Field(
dtype=bool,
default=True,
doc=("Raise an exception if photoCal fails? Ignored if doPhotoCal "
"false."),
)

Definition at line 206 of file calibrate.py.

◆ setPrimaryFlags

lsst.pipe.tasks.calibrate.CalibrateConfig.setPrimaryFlags
static
Initial value:
= pexConfig.ConfigurableField(
target=SetPrimaryFlagsTask,
doc=("Set flags for primary source classification in single frame "
"processing. True if sources are not sky sources and not a parent.")
)

Definition at line 261 of file calibrate.py.

◆ skySources

lsst.pipe.tasks.calibrate.CalibrateConfig.skySources
static
Initial value:
= pexConfig.ConfigurableField(
target=SkyObjectsTask,
doc="Generate sky sources",
)

Definition at line 253 of file calibrate.py.


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