Cross-Matching and Self-Matching in Spherical Coordinates.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spherimatch-0.1.tar.gz.
File metadata
- Download URL: spherimatch-0.1.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d68f6a324ac2183ac8314cc12cdb69d8fb11e1860339b91b91eaf51731248cc5
|
|
| MD5 |
a1c05a7e65c3ae3bf94b7adcfea8950f
|
|
| BLAKE2b-256 |
10d31f7de0bdb01c6ebd542c7ba39e401a349e70f2dc6127fc8dc89041fa2a45
|
Provenance
The following attestation bundles were made for spherimatch-0.1.tar.gz:
Publisher:
publish-pypi.yml on technic960183/spherimatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spherimatch-0.1.tar.gz -
Subject digest:
d68f6a324ac2183ac8314cc12cdb69d8fb11e1860339b91b91eaf51731248cc5 - Sigstore transparency entry: 158014481
- Sigstore integration time:
-
Permalink:
technic960183/spherimatch@c1ebd1ffd43e32260a6f6c5bfdae7494ff476078 -
Branch / Tag:
refs/tags/v0.1 - Owner: https://github.com/technic960183
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c1ebd1ffd43e32260a6f6c5bfdae7494ff476078 -
Trigger Event:
release
-
Statement type:
File details
Details for the file spherimatch-0.1-py3-none-any.whl.
File metadata
- Download URL: spherimatch-0.1-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a8fff97cca262d60610464f0fcf010554a60ee138d086eea5f102af42d8291b
|
|
| MD5 |
cfd588bf76db21e04396b69fd77df5f0
|
|
| BLAKE2b-256 |
27fa4b436733e11d168554c26bf7c12f769087f54f706f170dde65bb253cfd7b
|
Provenance
The following attestation bundles were made for spherimatch-0.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on technic960183/spherimatch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spherimatch-0.1-py3-none-any.whl -
Subject digest:
7a8fff97cca262d60610464f0fcf010554a60ee138d086eea5f102af42d8291b - Sigstore transparency entry: 158014482
- Sigstore integration time:
-
Permalink:
technic960183/spherimatch@c1ebd1ffd43e32260a6f6c5bfdae7494ff476078 -
Branch / Tag:
refs/tags/v0.1 - Owner: https://github.com/technic960183
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@c1ebd1ffd43e32260a6f6c5bfdae7494ff476078 -
Trigger Event:
release
-
Statement type: