Skip to main content

AsteroidPipeline.jl

CI Documentation Coverage PyPI License: MIT DOI

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), 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, 101 recovered instead of 82, 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).
  • 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.
  • 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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asteroidpipeline 1.5.0
File Size Uploaded Provenance Actions
asteroidpipeline-1.5.0.tar.gz 161.0 kB With provenance Details for asteroidpipeline-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for asteroidpipeline 1.5.0
File Interpreter ABI Platform Actions
asteroidpipeline-1.5.0-py3-none-any.whl Python 3 none any Details for asteroidpipeline-1.5.0-py3-none-any.whl

Total release size: 356.0 kB

Release files / asteroidpipeline-1.5.0.tar.gz

Download URL asteroidpipeline-1.5.0.tar.gz
Size 161.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2502d07ea13cec3b15d74173032015c002ba6fbb819004a8cbcf414966b5bb2d
BLAKE2b-256 checksum
How to use checksums
ca43b9e023ac40729de710c345b0906ecc73b129f341d91a9168c8bfae1f098f
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 9, 2026.

Transparency log

Release files / asteroidpipeline-1.5.0-py3-none-any.whl

Download URL asteroidpipeline-1.5.0-py3-none-any.whl
Size 195.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4cfabbcd380258db83257ea3b510194f804fe3ecd15aa2d063675eefb3a3008
BLAKE2b-256 checksum
How to use checksums
99c700ce0ce5055224e336ef12346c42e31329815764ddf378704fe25d08fd45
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 9, 2026.

Transparency log

Security for asteroidpipeline 1.5.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.

Select from 2 files

Attestation for asteroidpipeline-1.5.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 9, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page