AsteroidPipeline.jl
Find asteroids in astronomical images. Give it a few exposures of one field
taken minutes apart — a .zip, a folder or FITS files, from any telescope —
and it calibrates them against Gaia, finds what moves, tells known asteroids
from new candidates, and writes the report for the Minor Planet Center.
It comes two ways:
asteroidpipeline, a terminal app: open an image set, watch the images animate with every object marked, confirm or reject each candidate, copy the report. Every decision is saved, with the candidate's pixels, as training data for a future classifier.- AsteroidPipeline.jl, the Julia library that does all the analysis — for scripts, batches and anything the app doesn't do.
Documentation: https://richard7987.github.io/AsteroidPipeline.jl/stable/
— for the latest release; the version picker at the top right has each
release's, and dev
for main. What changed: release notes.
What it does
- Any image set: a
.zip, a folder or FITS files, from any telescope; images without a WCS are solved from the telescope's pointing, against Gaia. The observatory's MPC code is found from the FITS headers. - Calibrated: every frame's astrometry refitted to Gaia DR3 (positions agree with an independent reduction to 0.12–0.17″), magnitudes against Gaia's.
- The search: each frame minus the set's median, artifacts removed (hot pixels, bright-star halos, ghosts and diffraction spikes, stars subtracted badly), detections linked along straight lines at constant rates; damaged frames and sets recognised, and candidates fainter than the set's own limit marked. Then the frames are added along trial motions, for objects too faint for any one frame, with a threshold measured on the set's own noise: on Pan-STARRS1 sets with injected asteroids, 94 recovered instead of 77, none false.
- Is it new? Known asteroids identified against SkyBoT and the MPC's own orbit file (downloaded daily); each candidate compared with every known object within 10′ and, for recent images, with the MPC's NEO Confirmation Page. While a service is down, the same catalogue is asked elsewhere (Gaia at NOIRLab, SIMBAD at Harvard, VSX at AAVSO).
- Before reporting (the library): whether a candidate is already in the MPC's Isolated Tracklet File, reported by someone else and never linked, and its digest2 score, as the MPC computes it for its NEO Confirmation Page.
- The report: MPC 80-column or ADES, under your own designations
(
NHU0002) or the NEOCP's; any report checked before it is submitted. - Orbits (the library): a preliminary orbit from astrometry over several nights, with its uncertainty and where it puts the object next; tracklets of different nights linked into one object by that orbit.
- Light curves and rotation periods (the library): photometry that follows a moving asteroid from frame to frame, across nights, with its period from a Fourier series.
How well it works, measured on real data, is in the validation reports.
Install
| Command | Needs | |
|---|---|---|
| the app | pipx install asteroidpipeline |
Python 3.11+ |
| the library | julia -e 'using Pkg; Pkg.add("AsteroidPipeline")' |
Julia 1.11+ |
The app carries the library inside it and sets up Julia by itself; install the library only to use it from your own code. Details: Installation.
The app
On any Linux (or macOS) with Python 3.11 or newer, from PyPI with pipx (or pip):
pipx install asteroidpipeline
asteroidpipeline
or with the installer, which makes its own Python environment:
curl -fsSL https://raw.githubusercontent.com/Richard7987/AsteroidPipeline.jl/main/install.sh | sh
The first run sets up the analysis engine — Julia (downloaded if you don't
have it) and its packages — which takes several minutes, once;
asteroidpipeline --setup does it ahead of time. Images are shown at full
resolution in terminals with a graphics protocol (Kitty, WezTerm, Ghostty,
foot…), as coloured blocks elsewhere. The app's own guide is
ui/README.md.
The library
Julia 1.11 or newer, from Julia's General registry:
using Pkg
Pkg.add("AsteroidPipeline")
using AsteroidPipeline
result = analyze_set("images.zip"; observatory="F51", workdir="work")
print(result.report)
Many sets at once: julia --project=. examples/analyze_sets.jl <folder> <observatory code>.
Start with Getting started.
Repository
| Path | What |
|---|---|
src/ |
the Julia library |
test/ |
its tests (julia --project=. -e 'using Pkg; Pkg.test()'), run on Julia 1.11 and the newest release |
docs/ |
the documentation site (julia --project=docs docs/make.jl; every version: docs/build_all_versions.sh) |
examples/ |
scripts for real data, batches and completeness tests |
ui/ |
the terminal app (Python, Textual), and its tests in ui/tests |
pyproject.toml, install.sh |
packaging of the app, with the library inside |
.github/workflows/ |
tests, the documentation, and releases (PyPI, GitHub) |
Development
On any Linux (or macOS), with git, Python 3.11+ and Julia 1.11+ (the
easiest way to get Julia is juliaup:
curl -fsSL https://install.julialang.org | sh):
git clone https://github.com/Richard7987/AsteroidPipeline.jl.git
cd AsteroidPipeline.jl
# the Julia library
julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.test()'
# the documentation
julia --project=docs -e 'using Pkg; Pkg.develop(path="."); Pkg.instantiate()'
julia --project=docs docs/make.jl # site in docs/build/1
# the terminal app, editable: it uses this checkout's Julia code
python3 -m venv .venv && . .venv/bin/activate
pip install -e .[test]
asteroidpipeline
pytest ui/tests # its tests: no terminal or Julia needed
Releasing a version — the tag, PyPI, the documentation, Julia's registry — is described in Releasing a version.
Citing
If you use it in scientific work, please cite it: GitHub's "Cite this
repository" button gives the reference, from CITATION.cff.
How to cite
lists what it builds on, to cite too.
License
MIT. See LICENSE.
Metadata
Release files for asteroidpipeline 1.6.0
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 |
|---|---|---|---|---|
| asteroidpipeline-1.6.0.tar.gz | 168.2 kB | With provenance | Details for asteroidpipeline-1.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asteroidpipeline-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for asteroidpipeline-1.6.0-py3-none-any.whl |
Total release size: 371.3 kB
Release files / asteroidpipeline-1.6.0.tar.gz
| Download URL | asteroidpipeline-1.6.0.tar.gz |
|---|---|
| Size | 168.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d8de6b870686b4de7d80dded46c8c28eb2860c0d6b8e8db8f849f5cf68b2551
|
|
BLAKE2b-256 checksum How to use checksums |
7db1625df9b8259e3bd8345919c7f3c031f644feb85d9b8d30bd1b79f840f2e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / asteroidpipeline-1.6.0-py3-none-any.whl
| Download URL | asteroidpipeline-1.6.0-py3-none-any.whl |
|---|---|
| Size | 203.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0de5dac19f8c869eda7df301611fb69dd32645847cd31dc87433d17386bf46ff
|
|
BLAKE2b-256 checksum How to use checksums |
643878f8ea26cab36acb42a9b0adf7c2a22c3d1b9e6b009b53a932be22175e12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logSecurity for asteroidpipeline 1.6.0
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 asteroidpipeline-1.6.0.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 Nov 16, 2026.
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.