|
lsst.meas.algorithms gc86a7ac1bc+18f2e97416
|
Public Member Functions | |
| run (self, catalog) | |
Static Public Attributes | |
| ConfigClass = FindGlintTrailsConfig | |
Protected Member Functions | |
| _select_good_sources (self, catalog) | |
| _search_one (self, matches, catalog) | |
| _other_points (self, n_points, indexes, matches, catalog) | |
Static Protected Attributes | |
| str | _DefaultName = "findGlintTrails" |
Find glint trails in a catalog by searching for sources that lie in a
line.
Notes
-----
For each source ("anchor") in the input catalog that was not included in
an an earlier iteration as part of a trail:
* Find all sources within a given radius.
* For each pair of anchor and match, identify the other sources that
could lie on the same line(s).
* Take the longest set of such pairs as a candidate trail.
* Fit a line to the identified pairs with the RANSAC algorithm,
measuring distances perpendicular to the line so that trails at any
angle are found.
* Find all sources in the catalog that could lie on that line.
* Refit a line to all of the matched sources.
* If the line holds at least the minimum number of sources, return the
sources that were considered inliers during the fit, and the fit
parameters.
Definition at line 201 of file findGlintTrails.py.
|
protected |
Find all catalog records that could lie on this line.
Parameters
----------
n_points : `int`
Number of sources in this candidate trail.
indexes : `list` [`int`]
Indexes into matches on this candidate trail.
matches : `list` [`lsst.afw.table.Match`]
Matches for one anchor sources to search for lines.
catalog : `lsst.afw.SourceCatalog`
Catalog of all sources, to refit lines to.
Returns
-------
trail : `lsst.afw.table.SourceCatalog`
Sources that are in the fitted trail.
result : `GlintTrailParameters`
Parameters of the fitted trail.
Definition at line 362 of file findGlintTrails.py.
|
protected |
Search one set of matches for a possible trail.
Parameters
----------
matches : `list` [`lsst.afw.table.Match`]
Matches for one anchor source to search for lines.
catalog : `lsst.afw.SourceCatalog`
Catalog of all sources, to refit lines to.
Returns
-------
trail, result : `tuple` or None
If the no trails matching the criteria are found, return None,
otherwise return a tuple of the sources in the trail and the
trail parameters.
Definition at line 312 of file findGlintTrails.py.
|
protected |
Return sources that could possibly be in a glint trail, i.e. ones
that do not have bad flags set.
Parameters
----------
catalog : `lsst.afw.table.SourceCatalog`
Original catalog to be selected from.
Returns
-------
good_catalog : `lsst.afw.table.SourceCatalog`
Catalog that has had bad sources removed.
Definition at line 293 of file findGlintTrails.py.
| lsst.meas.algorithms.findGlintTrails.FindGlintTrailsTask.run | ( | self, | |
| catalog ) |
Find glint trails in a catalog.
Parameters
----------
catalog : `lsst.afw.table.SourceCatalog`
Catalog to search for glint trails.
Returns
-------
result : `lsst.pipe.base.Struct`
Results as a struct with attributes:
``trails``
Catalog subsets containing sources in each trail that was found.
(`list` [`lsst.afw.table.SourceCatalog`])
``trailed_ids``
Ids of all the sources that were included in any fit trail.
(`set` [`int`])
``parameters``
Parameters of all the trails that were found.
(`list` [`GlintTrailParameters`])
Definition at line 226 of file findGlintTrails.py.
|
staticprotected |
Definition at line 224 of file findGlintTrails.py.
|
static |
Definition at line 223 of file findGlintTrails.py.