polygon_search#
- Catalog.polygon_search(vertices: list[tuple[float, float]], fine: bool = True) Self#
Perform a polygonal search to filter the catalog.
IMPORTANT: Requires additional
lsst-sphgeompackageFilters to points within the polygonal region specified in ra and dec, in degrees. Filters partitions in the catalog to those that have some overlap with the region.
- Parameters:
- verticeslist[tuple[float, float]]
The list of vertices of the polygon to filter pixels with, as a list of (ra,dec) coordinates, in degrees.
- finebool, default True
True if points are to be filtered, False if not. Defaults to True.
- Returns:
- Self
A new catalog containing the points filtered to those within the polygonal region, and the partitions that have some overlap with it.