MatchProbabilisticTask#
- class lsst.meas.astrom.MatchProbabilisticTask(**kwargs)#
Bases:
TaskRun MatchProbabilistic on a reference and target catalog covering the same tract.
Attributes Summary
Methods Summary
match(catalog_ref, catalog_target[, ...])Match sources in a reference tract catalog with a target catalog.
run(catalog_ref, catalog_target[, wcs])Match sources in a reference tract catalog with a target catalog.
Attributes Documentation
- columns_in_ref#
- columns_in_target#
Methods Documentation
- match(catalog_ref: Table, catalog_target: Table, select_ref: array = None, select_target: array = None, wcs: SkyWcs = None, logger: Logger = None, logging_n_rows: int = None) Tuple[Table, Table, Dict[int, str]]#
Match sources in a reference tract catalog with a target catalog.
Parameters#
- catalog_ref
astropy.table.Table A reference catalog to match objects/sources from.
- catalog_target
astropy.table.Table A target catalog to match reference objects/sources to.
- select_ref
numpy.array A boolean array of the same length as
catalog_refselecting the sources that can be matched.- select_target
numpy.array A boolean array of the same length as
catalog_targetselecting the sources that can be matched.- wcs
lsst.afw.image.SkyWcs A coordinate system to convert catalog positions to sky coordinates. Only used if
self.config.coords_ref_to_convertis set.- logger
logging.Logger A Logger for logging.
- logging_n_rows
int Number of matches to make before outputting incremental log message.
Returns#
- catalog_out_ref
astropy.table.Table Reference matched catalog with indices of target matches.
- catalog_out_target
astropy.table.Table Reference matched catalog with indices of target matches.
- catalog_ref
- run(catalog_ref: Table, catalog_target: Table, wcs: SkyWcs = None, **kwargs) Struct#
Match sources in a reference tract catalog with a target catalog.
Parameters#
- catalog_ref
astropy.table.Table A reference catalog to match objects/sources from.
- catalog_target
astropy.table.Table A target catalog to match reference objects/sources to.
- wcs
lsst.afw.image.SkyWcs A coordinate system to convert catalog positions to sky coordinates. Only needed if
config.coords_ref_to_convertis used to convert reference catalog sky coordinates to pixel positions.
kwargs : Additional keyword arguments to pass to
match.Returns#
- retStruct
lsst.pipe.base.Struct A struct with output_ref and output_target attribute containing the output matched catalogs, as well as a dict
- catalog_ref