LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
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.match_tract_catalog.MatchTractCatalogTask Class Reference
Inheritance diagram for lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask:

Public Member Functions

 __init__ (self, initInputs, **kwargs)
 
 runQuantum (self, butlerQC, inputRefs, outputRefs)
 
pipeBase.Struct run (self, pd.DataFrame catalog_ref, pd.DataFrame catalog_target, afwGeom.SkyWcs wcs=None)
 

Static Public Attributes

 ConfigClass = MatchTractCatalogConfig
 

Static Protected Attributes

str _DefaultName = "MatchTractCatalog"
 

Detailed Description

Match sources in a reference tract catalog with those in a target catalog.

Definition at line 171 of file match_tract_catalog.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask.__init__ ( self,
initInputs,
** kwargs )

Definition at line 177 of file match_tract_catalog.py.

177 def __init__(self, initInputs, **kwargs):
178 super().__init__(initInputs=initInputs, **kwargs)
179 self.makeSubtask("match_tract_catalog")
180

Member Function Documentation

◆ run()

pipeBase.Struct lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask.run ( self,
pd.DataFrame catalog_ref,
pd.DataFrame catalog_target,
afwGeom.SkyWcs wcs = None )
Match sources in a reference tract catalog with a target catalog.

Parameters
----------
catalog_ref : `pandas.DataFrame`
    A reference catalog to match objects/sources from.
catalog_target : `pandas.DataFrame`
    A target catalog to match reference objects/sources to.
wcs : `lsst.afw.image.SkyWcs`
    A coordinate system to convert catalog positions to sky coordinates,
    if necessary.

Returns
-------
retStruct : `lsst.pipe.base.Struct`
    A struct with output_ref and output_target attribute containing the
    output matched catalogs.

Definition at line 193 of file match_tract_catalog.py.

198 ) -> pipeBase.Struct:
199 """Match sources in a reference tract catalog with a target catalog.
200
201 Parameters
202 ----------
203 catalog_ref : `pandas.DataFrame`
204 A reference catalog to match objects/sources from.
205 catalog_target : `pandas.DataFrame`
206 A target catalog to match reference objects/sources to.
207 wcs : `lsst.afw.image.SkyWcs`
208 A coordinate system to convert catalog positions to sky coordinates,
209 if necessary.
210
211 Returns
212 -------
213 retStruct : `lsst.pipe.base.Struct`
214 A struct with output_ref and output_target attribute containing the
215 output matched catalogs.
216 """
217 output = self.match_tract_catalog.run(catalog_ref, catalog_target, wcs=wcs)
218 if output.exceptions:
219 self.log.warn('Exceptions: %s', output.exceptions)
220 retStruct = pipeBase.Struct(cat_output_ref=output.cat_output_ref,
221 cat_output_target=output.cat_output_target)
222 return retStruct

◆ runQuantum()

lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask.runQuantum ( self,
butlerQC,
inputRefs,
outputRefs )

Definition at line 181 of file match_tract_catalog.py.

181 def runQuantum(self, butlerQC, inputRefs, outputRefs):
182 inputs = butlerQC.get(inputRefs)
183 columns_ref, columns_target = self.config.get_columns_in()
184 skymap = inputs.pop("skymap")
185
186 outputs = self.run(
187 catalog_ref=inputs['cat_ref'].get(parameters={'columns': columns_ref}),
188 catalog_target=inputs['cat_target'].get(parameters={'columns': columns_target}),
189 wcs=skymap[butlerQC.quantum.dataId["tract"]].wcs,
190 )
191 butlerQC.put(outputs, outputRefs)
192

Member Data Documentation

◆ _DefaultName

str lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask._DefaultName = "MatchTractCatalog"
staticprotected

Definition at line 175 of file match_tract_catalog.py.

◆ ConfigClass

lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask.ConfigClass = MatchTractCatalogConfig
static

Definition at line 174 of file match_tract_catalog.py.


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