LSST Applications g180d380827+107df2c2fa,g2079a07aa2+86d27d4dc4,g2305ad1205+27ad5d03fa,g2bbee38e9b+c6a8a0fb72,g337abbeb29+c6a8a0fb72,g33d1c0ed96+c6a8a0fb72,g3a166c0a6a+c6a8a0fb72,g3d1719c13e+cc4c7597ef,g487adcacf7+4b0be3ae0a,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+14d443d837,g62aa8f1a4b+588cc723a1,g674612935b+7a21c67e12,g858d7b2824+cc4c7597ef,g991b906543+cc4c7597ef,g99cad8db69+b90e8bab37,g9c22b2923f+e2510deafe,g9ddcbc5298+9a081db1e4,g9fbc5161f1+1dc7c5428e,ga1e77700b3+03d07e1c1f,gb0e22166c9+60f28cb32d,gb23b769143+cc4c7597ef,gba4ed39666+c2a2e4ac27,gbb8dafda3b+52e28152d7,gbd998247f1+585e252eca,gbeadb96d05+a322446fe6,gc120e1dc64+6a70fcc921,gc28159a63d+c6a8a0fb72,gc3e9b769f7+48c1343504,gcf0d15dbbd+7a21c67e12,gdaeeff99f8+f9a426f77a,ge6526c86ff+9349653ccd,ge79ae78c31+c6a8a0fb72,gee10cc3b42+585e252eca,w.2024.18
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Static Protected Attributes | List of all members
lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask Class Reference
Inheritance diagram for lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask:

Public Member Functions

 __init__ (self, initInputs, **kwargs)
 
 runQuantum (self, butlerQC, inputRefs, outputRefs)
 
pipeBase.Struct run (self, CatalogExposurePsf catexp)
 

Static Public Attributes

 ConfigClass = CoaddPsfFitConfig
 

Static Protected Attributes

str _DefaultName = "CoaddPsfFit"
 

Detailed Description

Fit a PSF model at the location of sources in a coadd.

This task is intended to fit only a single PSF model at the
centroid of all of the sources in a single coadd exposure.
Subtasks may choose to filter which sources they fit,
and may output whatever columns they desire in addition to
the minimum of 'id'.

Definition at line 145 of file fit_coadd_psf.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask.__init__ ( self,
initInputs,
** kwargs )

Definition at line 157 of file fit_coadd_psf.py.

157 def __init__(self, initInputs, **kwargs):
158 super().__init__(initInputs=initInputs, **kwargs)
159 self.makeSubtask("fit_coadd_psf")
160

Member Function Documentation

◆ run()

pipeBase.Struct lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask.run ( self,
CatalogExposurePsf catexp )
Fit a PSF model at the location of sources in a coadd.

Parameters
----------
catexp : `typing.List [CatalogExposurePsf]`
    A list of catalog-exposure pairs in a given band.

Returns
-------
retStruct : `lsst.pipe.base.Struct`
    A struct with a cat_output attribute containing the output
    measurement catalog.

Notes
-----
Subtasks may have further requirements; see `CoaddPsfFitSubTask.run`.

Definition at line 175 of file fit_coadd_psf.py.

175 def run(self, catexp: CatalogExposurePsf) -> pipeBase.Struct:
176 """Fit a PSF model at the location of sources in a coadd.
177
178 Parameters
179 ----------
180 catexp : `typing.List [CatalogExposurePsf]`
181 A list of catalog-exposure pairs in a given band.
182
183 Returns
184 -------
185 retStruct : `lsst.pipe.base.Struct`
186 A struct with a cat_output attribute containing the output
187 measurement catalog.
188
189 Notes
190 -----
191 Subtasks may have further requirements; see `CoaddPsfFitSubTask.run`.
192 """
193 cat_output = self.fit_coadd_psf.run(catexp).output
194 retStruct = pipeBase.Struct(cat_output=cat_output)
195 return retStruct

◆ runQuantum()

lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask.runQuantum ( self,
butlerQC,
inputRefs,
outputRefs )

Definition at line 161 of file fit_coadd_psf.py.

161 def runQuantum(self, butlerQC, inputRefs, outputRefs):
162 inputs = butlerQC.get(inputRefs)
163 id_tp = self.config.idGenerator.apply(butlerQC.quantum.dataId).catalog_id
164 dataId = inputRefs.cat_meas.dataId
165 for dataRef in (inputRefs.coadd,):
166 if dataRef.dataId != dataId:
167 raise RuntimeError(f'{dataRef=}.dataId != {inputRefs.cat_meas.dataId=}')
168
169 catexp = CatalogExposurePsf(
170 catalog=inputs['cat_meas'], exposure=inputs['coadd'], dataId=dataId, id_tract_patch=id_tp,
171 )
172 outputs = self.run(catexp=catexp)
173 butlerQC.put(outputs, outputRefs)
174

Member Data Documentation

◆ _DefaultName

str lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask._DefaultName = "CoaddPsfFit"
staticprotected

Definition at line 155 of file fit_coadd_psf.py.

◆ ConfigClass

lsst.pipe.tasks.fit_coadd_psf.CoaddPsfFitTask.ConfigClass = CoaddPsfFitConfig
static

Definition at line 154 of file fit_coadd_psf.py.


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