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
|
Public Member Functions | |
Set[str] | columns_in_ref (self) |
Set[str] | columns_in_target (self) |
Tuple[pd.DataFrame, pd.DataFrame, Dict[int, str]] | match (self, pd.DataFrame catalog_ref, pd.DataFrame catalog_target, np.array select_ref=None, np.array select_target=None, afwGeom.SkyWcs wcs=None, logging.Logger logger=None, int logging_n_rows=None) |
pipeBase.Struct | run (self, pd.DataFrame catalog_ref, pd.DataFrame catalog_target, afwGeom.SkyWcs wcs=None, **kwargs) |
__init__ (self, **kwargs) | |
Public Attributes | |
matcher | |
Static Public Attributes | |
ConfigClass = MatchProbabilisticConfig | |
Static Protected Member Functions | |
np.array | _apply_select_bool (pd.DataFrame catalog, List[str] columns_true, List[str] columns_false, Optional[np.array] selection) |
Static Protected Attributes | |
str | _DefaultName = "matchProbabilistic" |
Run MatchProbabilistic on a reference and target catalog covering the same tract.
Definition at line 42 of file match_probabilistic_task.py.
lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.__init__ | ( | self, | |
** | kwargs ) |
Reimplemented in lsst.pipe.tasks.match_tract_catalog_probabilistic.MatchTractCatalogProbabilisticTask.
Definition at line 209 of file match_probabilistic_task.py.
|
staticprotected |
Apply additional boolean selection columns. catalog : `pandas.DataFrame` The catalog to select from. columns_true : `list` [`str`] Columns that must be True for selection. columns_false : `list` [`str`] Columns that must be False for selection. selection : `numpy.array` A prior selection array. Default all true. Returns ------- selection : `numpy.array` The final selection array.
Definition at line 49 of file match_probabilistic_task.py.
Set[str] lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.columns_in_ref | ( | self | ) |
Definition at line 83 of file match_probabilistic_task.py.
Set[str] lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.columns_in_target | ( | self | ) |
Definition at line 87 of file match_probabilistic_task.py.
Tuple[pd.DataFrame, pd.DataFrame, Dict[int, str]] lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.match | ( | self, | |
pd.DataFrame | catalog_ref, | ||
pd.DataFrame | catalog_target, | ||
np.array | select_ref = None, | ||
np.array | select_target = None, | ||
afwGeom.SkyWcs | wcs = None, | ||
logging.Logger | logger = None, | ||
int | logging_n_rows = 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. select_ref : `numpy.array` A boolean array of the same length as `catalog_ref` selecting the sources that can be matched. select_target : `numpy.array` A boolean array of the same length as `catalog_target` selecting 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_convert` is 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 : `pandas.DataFrame` Reference matched catalog with indices of target matches. catalog_out_target : `pandas.DataFrame` Reference matched catalog with indices of target matches.
Definition at line 90 of file match_probabilistic_task.py.
pipeBase.Struct lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.run | ( | self, | |
pd.DataFrame | catalog_ref, | ||
pd.DataFrame | catalog_target, | ||
afwGeom.SkyWcs | wcs = None, | ||
** | kwargs ) |
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. Only needed if `config.coords_ref_to_convert` is 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
Reimplemented in lsst.pipe.tasks.match_tract_catalog_probabilistic.MatchTractCatalogProbabilisticTask.
Definition at line 176 of file match_probabilistic_task.py.
|
staticprotected |
Definition at line 46 of file match_probabilistic_task.py.
|
static |
Definition at line 45 of file match_probabilistic_task.py.
lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.matcher |
Definition at line 211 of file match_probabilistic_task.py.