Back to Search
Start Over
GriSPy: A Python package for fixed-radius nearest neighbors search
- Source :
- Astronomy and Computing. 34:100443
- Publication Year :
- 2021
- Publisher :
- Elsevier BV, 2021.
-
Abstract
- We present a new regular grid search algorithm for quick fixed-radius nearest-neighbor lookup developed in Python. This module indexes a set of k-dimensional points in a regular grid, with optional periodic conditions, providing a fast approach for nearest neighbors queries. In this first installment, we provide three types of queries: bubble, shell and the nth-nearest. For these queries we include three different metrics of interest in astronomy, namely, the euclidean, the haversine and the Vincenty, the last two in spherical coordinates. We also provide the possibility of using a custom distance function. This package results particularly useful for large datasets where a brute-force search turns impractical.
- Subjects :
- 010308 nuclear & particles physics
Computer science
Astroinformatics
Nearest neighbor search
Spherical coordinate system
Astronomy and Astrophysics
Python (programming language)
01 natural sciences
Computer Science Applications
Regular grid
Haversine formula
Space and Planetary Science
Search algorithm
0103 physical sciences
Euclidean geometry
010303 astronomy & astrophysics
computer
Algorithm
computer.programming_language
Subjects
Details
- ISSN :
- 22131337
- Volume :
- 34
- Database :
- OpenAIRE
- Journal :
- Astronomy and Computing
- Accession number :
- edsair.doi...........48febfb6ef28f0643616ade987a7c9bb
- Full Text :
- https://doi.org/10.1016/j.ascom.2020.100443