Astronomical object name resolution: Messier, NGC/IC, Caldwell, Sharpless, Barnard, SIMBAD.
Project description
astro-resolver
Astronomical object name resolution for FITS workflows, astrophotography
pipelines and Siril scripts. Turns messy OBJECT headers like
"M 81", "sh2-101", "barnard 33" or "HD 1" into clean,
filesystem-safe folder names.
Features
- Local-first resolution chain — SIMBAD only as a last resort
- Solar System, Caldwell, custom aliases, OpenNGC (~14k objects), Sharpless and Barnard catalogs bundled
- Stellar catalog IDs (HD, HIP, SAO, TYC, …) skip the SIMBAD
otyperound-trip and go straight to coordinate lookup - Coordinate fallback via SIMBAD when name lookup fails
- Filesystem-safe output suitable as folder/file names
Installation
pip install astro-resolver
Usage
from astro_resolver import resolve_object_name
resolve_object_name("M 81") # → "M81_BodesGalaxy"
resolve_object_name("sh2-101") # → "Sh2-101_TulipNebula"
resolve_object_name("barnard 33") # → "B33_HorseheadNebula"
# Stellar catalog ID with coordinates → SIMBAD coord lookup
resolve_object_name("HD 1", ra="00 05 09", dec="+67 50 24")
The resolver accepts an optional log callable so it can be plugged into
Siril scripts (log=siril.log) or any other host environment.
Resolution priority
- Solar System (local)
- Caldwell (local)
- Custom aliases (local)
- OpenNGC offline (local, ~14k NGC/IC objects)
- Sharpless catalog (local, Sh 2-xxx HII regions)
- Barnard catalog (local, dark nebulae)
- SIMBAD by name (online)
- SIMBAD by coordinates (online)
- Sanitized header string as fallback
Data sources
License
MIT
Project details
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 astro_resolver-0.1.0.tar.gz.
File metadata
- Download URL: astro_resolver-0.1.0.tar.gz
- Upload date:
- Size: 901.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69334c4d0c8d0c347b3c0e4f34dc85395a6b63b4a914943c54295c5e2de511d4
|
|
| MD5 |
407ef6b6e57b81567e3ff5a8a2a4f16f
|
|
| BLAKE2b-256 |
5f94398244d2b42709ed3c9729e0e03a8b2d7ace622c761322b803dd5d31b599
|
File details
Details for the file astro_resolver-0.1.0-py3-none-any.whl.
File metadata
- Download URL: astro_resolver-0.1.0-py3-none-any.whl
- Upload date:
- Size: 912.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0f5da1aaf10ecddc932a1af9c8800499e4d131d2d84d20b32042e4062db06f5
|
|
| MD5 |
0685f7fc1eb346234d476401f971aab3
|
|
| BLAKE2b-256 |
e6af5dc9a7e8c5cf4afe4f8d66c31538290da95a1a44b0359c774b7da935d4c8
|