pneo — a Bayesian update to digest2
pneo computes the probability that a newly detected moving object is a near-Earth object
(NEO), using only what a single night's tracklet measures: its sky position, angular
motion, and apparent magnitude. Its classifications are provably optimal for the adopted
population model, and its probabilities are calibrated.
Applied to present-day NEOCP candidates, its selection is 1.14x purer than digest2's. It was shown to be 1.4–1.7x as pure on early Rubin data, and is expected to be ~2x as pure at full LSST depth.
Installation
pip install pneo # CPython >= 3.11
pneo fetch # once: the MPC population model and observatory codes
Both are stored in a per-user cache; see docs/cli.md to change where.
Add the plot extra (pip install 'pneo[plot]') for the diagnostic plots, which need
matplotlib.
Wheels for Linux (x86_64), macOS (Apple silicon) and Windows (x64) include a compiled
Rust kernel. On other platforms pip installs a pure-Python version that gives the same
results about 40 times more slowly.
Quick start: command line
pneo classify reads astrometry in ADES PSV or MPC 80-column format (detected
automatically), fits one tracklet per object, and writes one row per tracklet. With the
four synthetic tracklets in
examples/example.psv:
$ pneo classify examples/example.psv
object_id n_obs arc_hours epoch obscode mag_v p_neo log_lr status
T000001 4 0.7500 2026-03-15T06:00:00.000Z X05 19.77 1 inf ok
T000002 3 0.0667 2026-03-15T06:00:00.000Z X05 22.62 1 nan beyond_model
T000003 5 1.3333 2026-03-15T06:00:00.000Z F51 20.25 0.929963 2.58612 ok
T000004 1 X05 single_detection
p_neo is the probability that the object is an NEO. status says how each row was
obtained: ok is a computed probability; beyond_model marks a very small, nearby
object beyond the population model's size range, assigned P(NEO) = 1 by rule; any other
value says why there is no probability. Use only status == ok rows when
checking calibration. Output is tab-separated by default (--format csv or json for
other formats). pneo classify --help lists every option, and docs/cli.md
describes them in more detail.
Quick start: Python
import pneo
# One tracklet: position [deg], on-sky rates [deg/day], epoch [MJD, UTC], V magnitude.
p = pneo.classify(166.2, 5.7, -1.1, 0.29, 61114.25, 21.0, obscode="X05")
# Arrays work the same way, and observation files can be read directly:
tracklets, failures = pneo.read_observations("examples/example.psv")
p = pneo.classify(**tracklets) # one P(NEO) per tracklet
r = pneo.classify(**tracklets, details=True) # also log_lr, likelihoods and status
# Where the probability lies in distance and range-rate (needs pneo[plot]):
m = pneo.posterior_map(166.2, 5.7, -1.1, 0.29, 61114.25, 21.0, obscode="X05")
pneo.plot_posterior_map(m)
ra_rate is the on-sky rate, d(α)/dt·cos δ. The population model is loaded from the
cache on first use; pneo.load_model() loads it explicitly, for example with
variant="Unk", and the result can be passed as model=. docs/api.md
describes every function.
How it works
A tracklet measures an object's position and angular motion on the sky, but not its
distance or its velocity along the line of sight. pneo considers every distance and
radial velocity that gives a bound orbit around the Sun. Each such hypothesis implies a
full orbit and, from the apparent magnitude, the object's absolute magnitude (its size).
pneo weighs each hypothesis by how many objects with that orbit and size a population
model predicts, accounting for how a grid of distances and velocities maps onto orbits.
P(NEO) is the fraction of this weight that falls on NEO orbits (perihelion below
1.3 AU).
The population model is the one digest2 uses, maintained by the Minor Planet Center, so differences from digest2 come from the method alone. It is a separate component and can be replaced with a newer model without changing the classifier.
Performance
The Rust kernel scores one tracklet in about 12 ms on a single CPU core, or about 1.5×10⁷ tracklets per hour on a 96-thread server.
Development
git clone https://github.com/lsst-ssp/pneo && cd pneo
pip install -e ".[dev]"
pneo fetch # the population model, into the user cache
rust/build.sh # optional: build the Rust kernel (needs cargo)
pytest -n auto # run the tests in parallel
An editable install is pure Python until rust/build.sh compiles the kernel into the
source tree; rerun it after changing the Rust code. The docs/ directory holds the
detailed command-line notes, the release process,
and the design records from pneo's development.
Citing pneo
The method and the tests behind the numbers above are described in Singh, Jurić &
Ivezić (in preparation). If you use pneo, please cite that paper; see
CITATION.cff.
License
BSD 3-Clause; see LICENSE.
Metadata
Release files for pneo 0.99.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 |
|---|---|---|---|---|
| pneo-0.99.0.tar.gz | 280.3 kB | With provenance | Details for pneo-0.99.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pneo-0.99.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for pneo-0.99.0-cp311-abi3-win_amd64.whl |
| pneo-0.99.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details for pneo-0.99.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| pneo-0.99.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for pneo-0.99.0-cp311-abi3-macosx_11_0_arm64.whl |
Total release size: 1.6 MB
Release files / pneo-0.99.0.tar.gz
| Download URL | pneo-0.99.0.tar.gz |
|---|---|
| Size | 280.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95d971127cba06320dfe82dbed9f35a7efe5885ce40935343754e9d2e3cf620d
|
|
BLAKE2b-256 checksum How to use checksums |
5e211329abc8a9ad12c906cdf96577564c938afea41c1f620e83c5e5c1203487
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 25, 2026.
Transparency logRelease files / pneo-0.99.0-cp311-abi3-win_amd64.whl
| Download URL | pneo-0.99.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 372.6 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
25f07ffff40e5f3cc3f04585198daa54f96f736e572d47daec57ecb0b4b8b644
|
|
BLAKE2b-256 checksum How to use checksums |
77adc23547d9af0838f8f795ed0291ea5843ac9be86d8d4d548803220d584b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 25, 2026.
Transparency logRelease files / pneo-0.99.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pneo-0.99.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 489.6 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f4f795ecb78255c492f25021a8914551eca89b7f25443aadff1dab40af19bb02
|
|
BLAKE2b-256 checksum How to use checksums |
b0a79b5e76e0b80b58b5a61f489d3836f04dec9c1ba3036f811133e0b3d51cff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 25, 2026.
Transparency logRelease files / pneo-0.99.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | pneo-0.99.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 450.7 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
40812ca974f7edd90b8373a64a3a4b855a6d888ce72e69cc0baa09f20b6ad41c
|
|
BLAKE2b-256 checksum How to use checksums |
30b27cca14732841f34a14f9d51c069739b2caace1f345ccc9123a97342a0165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 25, 2026.
Transparency logSecurity for pneo 0.99.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
All 4 files in this release have been uploaded with provenance metadata.
Attestation for pneo-0.99.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 25, 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.