LSST Applications g0d97872fb5+4fd969bb9d,g1653933729+34a971ddd9,g28da252d5a+072f89fe25,g2bbee38e9b+a99b0ab4cd,g2bc492864f+a99b0ab4cd,g2ca4be77d2+c0e3b27cd8,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+a99b0ab4cd,g35bb328faa+34a971ddd9,g3a166c0a6a+a99b0ab4cd,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9ed5ed841a,g569e0e2b34+cb4faa46ad,g5a97de2502+520531a62c,g717e5f8c0f+29153700a5,g7ede599f99+367733290c,g80478fca09+17051a22cc,g82479be7b0+f2f1ea0a87,g858d7b2824+29153700a5,g8b782ad322+29153700a5,g8cd86fa7b1+05420e7f7d,g9125e01d80+34a971ddd9,ga5288a1d22+e7f674aaf3,gae0086650b+34a971ddd9,gae74b0b5c6+45ef5cdc51,gb58c049af0+ace264a4f2,gc28159a63d+a99b0ab4cd,gcf0d15dbbd+8051a81198,gda6a2b7d83+8051a81198,gdaeeff99f8+7774323b41,gdf4d240d4a+34a971ddd9,ge2409df99d+cb167bac99,ge33fd446bb+29153700a5,ge79ae78c31+a99b0ab4cd,gf0baf85859+890af219f9,gf5289d68f6+9faa5c5784,w.2024.36
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 44 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 229 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 51 of file match_probabilistic_task.py.
Set[str] lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.columns_in_ref | ( | self | ) |
Definition at line 88 of file match_probabilistic_task.py.
Set[str] lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.columns_in_target | ( | self | ) |
Definition at line 92 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 95 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 191 of file match_probabilistic_task.py.
|
staticprotected |
Definition at line 48 of file match_probabilistic_task.py.
|
static |
Definition at line 47 of file match_probabilistic_task.py.
lsst.meas.astrom.match_probabilistic_task.MatchProbabilisticTask.matcher |
Definition at line 231 of file match_probabilistic_task.py.