spherimatch
A Python package for cross-matching and self-matching in spherical coordinates.
Table of Contents
Introduction
spherimatch is a Python package designed to perform cross-matching and self-matching in spherical coordinates. This is particularly useful in fields such as astrophysics, geophysics, and any domain where objects are naturally distributed on a spherical surface.
Currently, this package only support astrophysics coordinates (Ra, Dec) in degrees. More units and naming convention will be supported in the future.
Features
- Efficient computation ( $O(N\log N)$ ) of matching problems in spherical coordinates.
- Friends-of-Friends (FoF) analysis in spherical coordinates.
- Duplicate removal in spherical coordinates.
- Easy integration with existing data processing packages, such as
pandas.
Installation
You can install spherimatch by cloning the codes:
git clone https://github.com/technic960183/spherimatch.git
pip install will be supported in the future.
Remember to set the environment variable PYTHONPATH (sys.path) to the directory where spherimatch is located.
See the installation guide for more details.
Example Usage
Before you start, please check out our documentation for a quick start.
- To perform cross-matching between two catalogs, check this cross-matching example.
- To cluster the objects in a catalog with the Friends-of-Friends (FoF) algorithm, check this clustering example.
- To remove duplicates from a catalog, check this duplicate removal example.
API Reference
The full documentation and API reference can be found here.
Contributing
If you find any bugs or potential issues, please report it directly to me (via Slack or E-mail), or start an issue.
If you have any suggestions or feature requests, feel free to start an issue.
Citation
If you find spherimatch useful in your research, please consider citing it. Currently, we do not plan to publish a method paper for this package in the year of 2024. However, you can still cite this repository directly.
To cite spherimatch in your publication, please use the following BibTeX entry:
@misc{spherimatch,
author = {Yuan-Ming Hsu},
title = {spherimatch: A Python package for cross-matching and self-matching in spherical coordinates.},
year = {2024},
howpublished = {\url{https://github.com/technic960183/spherimatch}},
note = {Accessed: YYYY-MM}
}
Addtionally, you may add a reference to https://github.com/technic960183/spherimatch in the footnote if suitable.
If you publish a paper that uses spherimatch, please let me know. I would be happy to know how this package has been used in research.
Metadata
Release files for spherimatch 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spherimatch-0.1.tar.gz | 26.2 kB | With provenance | Details for spherimatch-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spherimatch-0.1-py3-none-any.whl | Python 3 | none | any | Details for spherimatch-0.1-py3-none-any.whl |
Total release size: 48.1 kB
Release files / spherimatch-0.1.tar.gz
| Download URL | spherimatch-0.1.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d68f6a324ac2183ac8314cc12cdb69d8fb11e1860339b91b91eaf51731248cc5
|
|
BLAKE2b-256 checksum How to use checksums |
10d31f7de0bdb01c6ebd542c7ba39e401a349e70f2dc6127fc8dc89041fa2a45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 28, 2024.
Transparency logRelease files / spherimatch-0.1-py3-none-any.whl
| Download URL | spherimatch-0.1-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a8fff97cca262d60610464f0fcf010554a60ee138d086eea5f102af42d8291b
|
|
BLAKE2b-256 checksum How to use checksums |
27fa4b436733e11d168554c26bf7c12f769087f54f706f170dde65bb253cfd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 28, 2024.
Transparency logSecurity for spherimatch 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for spherimatch-0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 28, 2024.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.