Structured Search#
A structured search on an LSDB catalog has two components:
a coarse filter to limit which data partitions will be loaded
a fine filter to limit the rows inside the data partitions
Most commonly, these are region-based filters, since the partitions can be easily determined for specific regions on the sphere. Culling data according to some shared region is a good way to limit the data you’re loading, while prototyping some full-sky pipeline.
There are a few ways to execute a structured search on LSDB catalogs.
The preferred approach is at the time of loading a catalog.
You can instantiate some search_object and pass to the open call, with
something like: lsdb.open_catalog(path, search_filter=search_object)
We provide several built-in search types:
|
Perform a cone search to filter the catalog |
|
Perform a box search to filter the catalog. |
|
Perform a polygonal search to filter the catalog. |
|
Filter the catalog by HEALPix order. |
|
Filter the catalog by HEALPix pixels. |
|
Filter the catalog by a MOC. |
|
Find rows by column values using HATS index catalogs. |
Alternatively, you can call the search method after a catalog has been
opened and other operations have been performed with catalog.search(search_object).
You can also call region search methods on the catalog object.
To see region searches in action, check out Region Selection.
To see an example of defining your own type of structured search, see Creating a custom search with global statistics.
|
Perform a cone search to filter the catalog. |
|
Performs filtering according to right ascension and declination ranges. |
|
Perform a polygonal search to filter the catalog. |
|
Query rows by column values. |
|
Filter catalog by order of HEALPix. |
|
Finds all catalog pixels that overlap with the requested pixel set. |
|
Finds all catalog points that are contained within a moc. |
|
Find rows by reusable search algorithm. |