orbitsift 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orbitsift-0.1.0/.gitattributes +1 -0
- orbitsift-0.1.0/.github/workflows/native-wheels.yml +39 -0
- orbitsift-0.1.0/.github/workflows/publish-pypi.yml +26 -0
- orbitsift-0.1.0/.github/workflows/tests.yml +26 -0
- orbitsift-0.1.0/.gitignore +28 -0
- orbitsift-0.1.0/AGENTS.md +241 -0
- orbitsift-0.1.0/CHANGELOG.md +504 -0
- orbitsift-0.1.0/CITATION.cff +34 -0
- orbitsift-0.1.0/LICENSE +28 -0
- orbitsift-0.1.0/PKG-INFO +443 -0
- orbitsift-0.1.0/README.md +412 -0
- orbitsift-0.1.0/benchmarks/confirm_fixture.py +63 -0
- orbitsift-0.1.0/benchmarks/confirm_heldout.py +121 -0
- orbitsift-0.1.0/benchmarks/confirm_replay_known.py +190 -0
- orbitsift-0.1.0/benchmarks/fixtures/cache/nsc/exposures_16.226_20.774_-9.750_-5.250.csv.gz +0 -0
- orbitsift-0.1.0/benchmarks/fixtures/cache/nsc/orphans_17.849_19.151_-8.150_-6.850_0.6.csv.gz +0 -0
- orbitsift-0.1.0/benchmarks/fixtures_bundle.py +67 -0
- orbitsift-0.1.0/benchmarks/golden/archive_targets.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/catalog_tile.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/link_dense.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/link_tile.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/orbit_fit.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/orbit_sample.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/precovery_search.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/precovery_search_warm.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/predict_cloud.json +1 -0
- orbitsift-0.1.0/benchmarks/golden/vet_tile.json +1 -0
- orbitsift-0.1.0/benchmarks/rubin_scaling.py +132 -0
- orbitsift-0.1.0/benchmarks/run.py +230 -0
- orbitsift-0.1.0/benchmarks/validate.py +1257 -0
- orbitsift-0.1.0/docs/RUBIN.md +403 -0
- orbitsift-0.1.0/docs/VALIDATION.md +334 -0
- orbitsift-0.1.0/docs/cli.md +200 -0
- orbitsift-0.1.0/docs/config.md +138 -0
- orbitsift-0.1.0/docs/guide-catalogue.md +104 -0
- orbitsift-0.1.0/docs/guide-confirm.md +85 -0
- orbitsift-0.1.0/docs/guide-extend.md +87 -0
- orbitsift-0.1.0/docs/guide-known-check.md +128 -0
- orbitsift-0.1.0/docs/guide-lov.md +144 -0
- orbitsift-0.1.0/docs/guide-machines.md +76 -0
- orbitsift-0.1.0/docs/guide-multiyear.md +105 -0
- orbitsift-0.1.0/docs/guide-recover.md +73 -0
- orbitsift-0.1.0/docs/guide-simulator.md +52 -0
- orbitsift-0.1.0/docs/guide-tile.md +136 -0
- orbitsift-0.1.0/docs/guide-vetting.md +104 -0
- orbitsift-0.1.0/docs/media/orbitsift_launch.mp4 +0 -0
- orbitsift-0.1.0/docs/media/orbitsift_launch_vertical.mp4 +0 -0
- orbitsift-0.1.0/docs/method.md +277 -0
- orbitsift-0.1.0/docs/plugins.md +70 -0
- orbitsift-0.1.0/docs/workflow.md +100 -0
- orbitsift-0.1.0/examples/plugin/orbitsift_csv.py +34 -0
- orbitsift-0.1.0/examples/plugin/pyproject.toml +19 -0
- orbitsift-0.1.0/examples/quickstart.py +25 -0
- orbitsift-0.1.0/examples/rubin_known_tno.py +37 -0
- orbitsift-0.1.0/examples/tiles_queue.py +85 -0
- orbitsift-0.1.0/examples/trojan_libration.py +29 -0
- orbitsift-0.1.0/llms.txt +20 -0
- orbitsift-0.1.0/native/Cargo.lock +287 -0
- orbitsift-0.1.0/native/Cargo.toml +23 -0
- orbitsift-0.1.0/native/README.md +25 -0
- orbitsift-0.1.0/native/pyproject.toml +14 -0
- orbitsift-0.1.0/native/src/dense.rs +533 -0
- orbitsift-0.1.0/native/src/grow.rs +472 -0
- orbitsift-0.1.0/native/src/lib.rs +581 -0
- orbitsift-0.1.0/plugins/satellites/README.md +48 -0
- orbitsift-0.1.0/plugins/satellites/orbitsift_satellites.py +489 -0
- orbitsift-0.1.0/plugins/satellites/pyproject.toml +19 -0
- orbitsift-0.1.0/pyproject.toml +46 -0
- orbitsift-0.1.0/src/orbitsift/__init__.py +2 -0
- orbitsift-0.1.0/src/orbitsift/_native.py +13 -0
- orbitsift-0.1.0/src/orbitsift/ades.py +166 -0
- orbitsift-0.1.0/src/orbitsift/archives/__init__.py +244 -0
- orbitsift-0.1.0/src/orbitsift/archives/cadc.py +97 -0
- orbitsift-0.1.0/src/orbitsift/archives/decam_geom.json +1 -0
- orbitsift-0.1.0/src/orbitsift/archives/eso.py +213 -0
- orbitsift-0.1.0/src/orbitsift/archives/hsc_geom.json +2378 -0
- orbitsift-0.1.0/src/orbitsift/archives/ing.py +70 -0
- orbitsift-0.1.0/src/orbitsift/archives/listing.py +22 -0
- orbitsift-0.1.0/src/orbitsift/archives/noirlab.py +302 -0
- orbitsift-0.1.0/src/orbitsift/archives/ps1.py +59 -0
- orbitsift-0.1.0/src/orbitsift/archives/sdss.py +52 -0
- orbitsift-0.1.0/src/orbitsift/archives/smoka.py +369 -0
- orbitsift-0.1.0/src/orbitsift/blind.py +558 -0
- orbitsift-0.1.0/src/orbitsift/catalog.py +328 -0
- orbitsift-0.1.0/src/orbitsift/cli.py +2200 -0
- orbitsift-0.1.0/src/orbitsift/config.py +85 -0
- orbitsift-0.1.0/src/orbitsift/confirm.py +1030 -0
- orbitsift-0.1.0/src/orbitsift/data/nsc_dr2_k4m_ksb.csv.gz +0 -0
- orbitsift-0.1.0/src/orbitsift/dense.py +788 -0
- orbitsift-0.1.0/src/orbitsift/dynamics.py +235 -0
- orbitsift-0.1.0/src/orbitsift/expindex.py +456 -0
- orbitsift-0.1.0/src/orbitsift/extend.py +690 -0
- orbitsift-0.1.0/src/orbitsift/external.py +204 -0
- orbitsift-0.1.0/src/orbitsift/extract.py +148 -0
- orbitsift-0.1.0/src/orbitsift/growth.py +224 -0
- orbitsift-0.1.0/src/orbitsift/images.py +676 -0
- orbitsift-0.1.0/src/orbitsift/itf.py +154 -0
- orbitsift-0.1.0/src/orbitsift/known.py +716 -0
- orbitsift-0.1.0/src/orbitsift/link.py +509 -0
- orbitsift-0.1.0/src/orbitsift/lov.py +642 -0
- orbitsift-0.1.0/src/orbitsift/mcp_server.py +164 -0
- orbitsift-0.1.0/src/orbitsift/multiyear.py +409 -0
- orbitsift-0.1.0/src/orbitsift/net.py +265 -0
- orbitsift-0.1.0/src/orbitsift/orbit.py +614 -0
- orbitsift-0.1.0/src/orbitsift/plugins.py +97 -0
- orbitsift-0.1.0/src/orbitsift/precovery.py +187 -0
- orbitsift-0.1.0/src/orbitsift/presets/a2.json +85 -0
- orbitsift-0.1.0/src/orbitsift/presets/confirm_v1.json +190 -0
- orbitsift-0.1.0/src/orbitsift/presets/confirm_v2.json +236 -0
- orbitsift-0.1.0/src/orbitsift/presets/lostrec.json +74 -0
- orbitsift-0.1.0/src/orbitsift/recover.py +377 -0
- orbitsift-0.1.0/src/orbitsift/rubin.py +328 -0
- orbitsift-0.1.0/src/orbitsift/survey.py +268 -0
- orbitsift-0.1.0/src/orbitsift/tiles.py +58 -0
- orbitsift-0.1.0/src/orbitsift/unused.py +103 -0
- orbitsift-0.1.0/src/orbitsift/vet.py +304 -0
- orbitsift-0.1.0/src/orbitsift/workflow/__init__.py +5 -0
- orbitsift-0.1.0/src/orbitsift/workflow/models.py +103 -0
- orbitsift-0.1.0/src/orbitsift/workflow/sqlite.py +189 -0
- orbitsift-0.1.0/tests/archive_check.py +26 -0
- orbitsift-0.1.0/tests/conftest.py +19 -0
- orbitsift-0.1.0/tests/fixtures/archives/ing_results.html +109 -0
- orbitsift-0.1.0/tests/fixtures/archives/noirlab_find_mosaic2.json +70 -0
- orbitsift-0.1.0/tests/fixtures/archives/smoka_hdr_HSCA11362400.json +1 -0
- orbitsift-0.1.0/tests/fixtures/dense/dlcore.json +1 -0
- orbitsift-0.1.0/tests/fixtures/dense/synth_ref.json +1 -0
- orbitsift-0.1.0/tests/fixtures/dense/tile.npz +0 -0
- orbitsift-0.1.0/tests/fixtures/expindex/cfht_2015-03-20.csv +6 -0
- orbitsift-0.1.0/tests/fixtures/expindex/decam_2019-01-02.json +126 -0
- orbitsift-0.1.0/tests/fixtures/expindex/hsc_2017-04-28.html +9 -0
- orbitsift-0.1.0/tests/fixtures/expindex/nsc_exposure.csv +4 -0
- orbitsift-0.1.0/tests/fixtures/known/build.py +48 -0
- orbitsift-0.1.0/tests/fixtures/known/getobs_2016_GR397.json +170 -0
- orbitsift-0.1.0/tests/fixtures/known/known_check.json +215 -0
- orbitsift-0.1.0/tests/fixtures/recover/2016_SS57_getobs.json +1 -0
- orbitsift-0.1.0/tests/fixtures/recover/ObsCodes.html +2 -0
- orbitsift-0.1.0/tests/fixtures/rubin/build.py +135 -0
- orbitsift-0.1.0/tests/fixtures/rubin/fink_329-13_2026-06-20_2026-07-20.csv.gz +0 -0
- orbitsift-0.1.0/tests/fixtures/rubin/fink_329-13_2026-06-20_2026-07-20_sources0.csv.gz +0 -0
- orbitsift-0.1.0/tests/fixtures/rubin/known.json +1203 -0
- orbitsift-0.1.0/tests/fixtures/rubin/schema.json +1 -0
- orbitsift-0.1.0/tests/fixtures/rubin/synthetic_dp2_DiaSource.csv +54 -0
- orbitsift-0.1.0/tests/fixtures/rubin/synthetic_dp2_VisitDetector.csv +11 -0
- orbitsift-0.1.0/tests/test_ades.py +64 -0
- orbitsift-0.1.0/tests/test_archives_more.py +299 -0
- orbitsift-0.1.0/tests/test_background.py +41 -0
- orbitsift-0.1.0/tests/test_blind.py +63 -0
- orbitsift-0.1.0/tests/test_cli_agent.py +184 -0
- orbitsift-0.1.0/tests/test_config.py +37 -0
- orbitsift-0.1.0/tests/test_confirm_cli.py +55 -0
- orbitsift-0.1.0/tests/test_confirm_fixture.py +35 -0
- orbitsift-0.1.0/tests/test_confirm_fragile.py +47 -0
- orbitsift-0.1.0/tests/test_confirm_measure.py +37 -0
- orbitsift-0.1.0/tests/test_confirm_plan.py +55 -0
- orbitsift-0.1.0/tests/test_confirm_registry.py +78 -0
- orbitsift-0.1.0/tests/test_confirm_rowtests.py +65 -0
- orbitsift-0.1.0/tests/test_confirm_rule.py +133 -0
- orbitsift-0.1.0/tests/test_confirm_search.py +28 -0
- orbitsift-0.1.0/tests/test_dense.py +116 -0
- orbitsift-0.1.0/tests/test_dynamics.py +77 -0
- orbitsift-0.1.0/tests/test_expindex.py +80 -0
- orbitsift-0.1.0/tests/test_expindex_build.py +85 -0
- orbitsift-0.1.0/tests/test_extend.py +210 -0
- orbitsift-0.1.0/tests/test_external.py +112 -0
- orbitsift-0.1.0/tests/test_extract.py +59 -0
- orbitsift-0.1.0/tests/test_fast_paths.py +150 -0
- orbitsift-0.1.0/tests/test_growth.py +151 -0
- orbitsift-0.1.0/tests/test_images.py +170 -0
- orbitsift-0.1.0/tests/test_itf.py +59 -0
- orbitsift-0.1.0/tests/test_known.py +71 -0
- orbitsift-0.1.0/tests/test_known_check.py +280 -0
- orbitsift-0.1.0/tests/test_known_same_exposure.py +40 -0
- orbitsift-0.1.0/tests/test_link.py +241 -0
- orbitsift-0.1.0/tests/test_lov.py +194 -0
- orbitsift-0.1.0/tests/test_mcp.py +54 -0
- orbitsift-0.1.0/tests/test_multiyear.py +135 -0
- orbitsift-0.1.0/tests/test_net.py +100 -0
- orbitsift-0.1.0/tests/test_network.py +79 -0
- orbitsift-0.1.0/tests/test_noirlab_byname.py +20 -0
- orbitsift-0.1.0/tests/test_orbit.py +161 -0
- orbitsift-0.1.0/tests/test_outbound.py +612 -0
- orbitsift-0.1.0/tests/test_photutils.py +96 -0
- orbitsift-0.1.0/tests/test_plugins.py +85 -0
- orbitsift-0.1.0/tests/test_recover.py +134 -0
- orbitsift-0.1.0/tests/test_rubin.py +243 -0
- orbitsift-0.1.0/tests/test_satellites.py +96 -0
- orbitsift-0.1.0/tests/test_sites.py +37 -0
- orbitsift-0.1.0/tests/test_survey.py +66 -0
- orbitsift-0.1.0/tests/test_tiles_queue.py +88 -0
- orbitsift-0.1.0/tests/test_unused.py +32 -0
- orbitsift-0.1.0/tests/test_validation.py +21 -0
- orbitsift-0.1.0/tests/test_workflow.py +91 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.fz binary
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Prebuilt orbitsift-native wheels (abi3: one wheel per platform for every Python >= 3.10).
|
|
2
|
+
# Runs on version tags or by hand; wheels are uploaded as workflow artifacts (publishing to PyPI: add when releasing).
|
|
3
|
+
name: native wheels
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
jobs:
|
|
9
|
+
wheels:
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
include:
|
|
14
|
+
- { os: ubuntu-latest, target: x86_64 }
|
|
15
|
+
- { os: ubuntu-latest, target: aarch64 }
|
|
16
|
+
- { os: macos-15, target: x86_64 }
|
|
17
|
+
- { os: macos-15, target: aarch64 }
|
|
18
|
+
- { os: windows-latest, target: x64 }
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with: { python-version: "3.12" }
|
|
24
|
+
- uses: PyO3/maturin-action@v1
|
|
25
|
+
with:
|
|
26
|
+
working-directory: native
|
|
27
|
+
target: ${{ matrix.target }}
|
|
28
|
+
manylinux: auto
|
|
29
|
+
args: --release --out dist
|
|
30
|
+
- uses: actions/upload-artifact@v4
|
|
31
|
+
with: { name: "wheels-${{ matrix.os }}-${{ matrix.target }}", path: native/dist }
|
|
32
|
+
sdist:
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
- uses: PyO3/maturin-action@v1
|
|
37
|
+
with: { working-directory: native, command: sdist, args: --out dist }
|
|
38
|
+
- uses: actions/upload-artifact@v4
|
|
39
|
+
with: { name: sdist, path: native/dist }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
name: Build and publish orbitsift to PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write
|
|
14
|
+
contents: read
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.12"
|
|
20
|
+
- name: Build sdist and wheel
|
|
21
|
+
run: |
|
|
22
|
+
python -m pip install --upgrade pip build twine
|
|
23
|
+
python -m build
|
|
24
|
+
twine check dist/*
|
|
25
|
+
- name: Publish distribution to PyPI
|
|
26
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Offline test suite (tests marked network are deselected by pyproject's addopts).
|
|
2
|
+
name: tests
|
|
3
|
+
# Linux on every push to main and on pull requests; macOS only when started by hand (its minutes are billed tenfold on a
|
|
4
|
+
# private repository, and four jobs on every branch push used up the monthly allowance).
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
pull_request:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
jobs:
|
|
11
|
+
pytest:
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
os: [ubuntu-latest]
|
|
16
|
+
python: ["3.10", "3.12"]
|
|
17
|
+
include:
|
|
18
|
+
- os: ${{ github.event_name == 'workflow_dispatch' && 'macos-latest' || 'ubuntu-latest' }}
|
|
19
|
+
python: "3.12"
|
|
20
|
+
runs-on: ${{ matrix.os }}
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with: { python-version: "${{ matrix.python }}" }
|
|
25
|
+
- run: pip install -e ".[test]"
|
|
26
|
+
- run: pytest -q
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.egg-info/
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
dist/
|
|
6
|
+
build/
|
|
7
|
+
.DS_Store
|
|
8
|
+
*_links.json
|
|
9
|
+
*_vet.json
|
|
10
|
+
*_forced.json
|
|
11
|
+
*_forced.png
|
|
12
|
+
*_orbit.json
|
|
13
|
+
*_precovery.json
|
|
14
|
+
*_libration.json
|
|
15
|
+
*.psv
|
|
16
|
+
orbitsift.toml
|
|
17
|
+
target/
|
|
18
|
+
*.so
|
|
19
|
+
*_extend.json
|
|
20
|
+
|
|
21
|
+
# large benchmark fixtures: outside the repository (benchmarks/fixtures_bundle.py)
|
|
22
|
+
benchmarks/fixtures/validation/tiles/
|
|
23
|
+
benchmarks/fixtures/validation/extend/
|
|
24
|
+
benchmarks/fixtures/validation/precovery/
|
|
25
|
+
benchmarks/fixtures/cache/nsc/*
|
|
26
|
+
!benchmarks/fixtures/cache/nsc/orphans_17.849_19.151_-8.150_-6.850_0.6.csv.gz
|
|
27
|
+
!benchmarks/fixtures/cache/nsc/exposures_16.226_20.774_-9.750_-5.250.csv.gz
|
|
28
|
+
benchmarks/fixtures/multiyear/
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# AGENTS.md: using OrbitSift from an agent
|
|
2
|
+
|
|
3
|
+
OrbitSift finds trans-Neptunian objects, Neptune Trojans and Centaurs in public archival data
|
|
4
|
+
(NOIRLab Source Catalog DR2 and DECam images), checks them, fits orbits and writes ADES reports. This
|
|
5
|
+
page is for coding agents and scripts. Humans: start with the [README](README.md).
|
|
6
|
+
|
|
7
|
+
## Ground rules (non-negotiable)
|
|
8
|
+
|
|
9
|
+
1. **Never submit anything to the MPC**, and never send observations to any service. `export-ades`
|
|
10
|
+
only writes a file; a human reviews it and submits it. Do not use `--validate` (it sends the file
|
|
11
|
+
and an e-mail address to the MPC's test endpoint) unless the user asks for it.
|
|
12
|
+
2. **Never call a candidate an object, a discovery or "new" without all of these:**
|
|
13
|
+
- at least **2 new nights** (nights not in the arc you started from) fitted together with the arc
|
|
14
|
+
at **rms <= 0.12"** with a bound orbit;
|
|
15
|
+
- **consistent magnitudes** (median offset from the expected magnitude within 0.5 mag);
|
|
16
|
+
- a **known-object check** that comes back empty: `vet --ident` on the survivor, `known-check` on the full arc
|
|
17
|
+
(designated objects compared at their own observed dates), and a wide search (JPL sb_ident or the MPC). A `known:<name>` verdict means a known object is
|
|
18
|
+
predicted within 120"; any object in the `known` list deserves a look.
|
|
19
|
+
`confirm` checks all of this on images in one run: its `full_bar` tier is the survey's registration bar (still a
|
|
20
|
+
candidate, nothing is submitted); `stack_confirmed` and `probable` are weaker and must be called so.
|
|
21
|
+
The JSON verdict `consistent` covers the first two; `checks.known_checked` is always false, so the
|
|
22
|
+
third is your job. Look at the images too (`forced --plot`).
|
|
23
|
+
3. **A `survives` link is a candidate, not an object.** Four-night links are mostly chance alignments
|
|
24
|
+
that happened to pass; five or more nights are much more reliable.
|
|
25
|
+
4. **Do not publish positions, orbits or ephemerides of unreported candidates** (logs, issues, commits,
|
|
26
|
+
chat). Report counts and classes; the user decides what to share.
|
|
27
|
+
|
|
28
|
+
## Machine interface
|
|
29
|
+
|
|
30
|
+
- `--json` on every command: one JSON document on stdout (`schema: orbitsift/1`), human text on
|
|
31
|
+
stderr. Results carry `verdict` fields; reasons are lists, not prose. Schemas: [docs/cli.md](docs/cli.md#machine-interface).
|
|
32
|
+
- Exit codes: `0` result, `1` no result / not consistent, `2` bad input, `3` network or service error
|
|
33
|
+
(re-run: cached data are kept), `4` internal error, `130` interrupted.
|
|
34
|
+
- Idempotent: an output made from the same inputs is not recomputed (`skipped: true`); `--force`
|
|
35
|
+
recomputes. Downloads are cached. Interrupted surveys resume by running the same commands again.
|
|
36
|
+
- `--dry-run`: what would be fetched (queries, cached or not, MB, seconds) and computed. Use it before
|
|
37
|
+
anything that downloads CCDs or many tiles.
|
|
38
|
+
- No prompts; nothing reads stdin.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
orbitsift run --tile 18.5 -7.5 --outdir quick --ident --json | jq '.result.links[] | {index, verdict, vetoes}'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
An optional MCP server exposes the same commands as tools: `pip install "orbitsift[mcp]"`, then
|
|
45
|
+
`orbitsift-mcp` (stdio).
|
|
46
|
+
|
|
47
|
+
## Typical workflow
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# 1. Survey a tile (fetch + link + vet). Dry run first; then the real run.
|
|
51
|
+
orbitsift run --tile RA DEC --outdir survey --dry-run --json
|
|
52
|
+
orbitsift run --tile RA DEC --outdir survey --ident --json # verdict per link
|
|
53
|
+
|
|
54
|
+
# 2. Observations of a surviving link as ADES (a working file for the next steps). --allow-ids sends the link's NSC
|
|
55
|
+
# object ids to Data Lab: fine for a designated object; for an undesignated candidate ask the user first.
|
|
56
|
+
orbitsift export-ades survey/TILE_vet.json --links K -o cand.psv --submitter "NAME" --observers "OBSERVERS" --allow-ids --json
|
|
57
|
+
|
|
58
|
+
# 3. Orbit (look at short_arc and the sample spread: short arcs do not constrain a and e).
|
|
59
|
+
orbitsift fit cand.psv --samples 500 --json
|
|
60
|
+
|
|
61
|
+
# 4. Other nights in the catalogue (verdict consistent / not_consistent:<rules> per candidate).
|
|
62
|
+
orbitsift precover cand.psv --dry-run --json
|
|
63
|
+
orbitsift precover cand.psv --json
|
|
64
|
+
|
|
65
|
+
# 4b. Known objects anywhere in the orbit cloud: SBDB at each object's own epoch, and a forward check to today.
|
|
66
|
+
orbitsift identify cand.psv --json
|
|
67
|
+
|
|
68
|
+
# 4c. Designated objects at THEIR observed dates (catches one-opposition objects a cone misses); only bulk MPC files and
|
|
69
|
+
# get-obs by designation are fetched. Re-run before any submission: new orbits appear every day.
|
|
70
|
+
orbitsift known-check cand.psv --json
|
|
71
|
+
|
|
72
|
+
# 4d. Short arc (weeks): other seasons in NSC DR2 along the line of variations, with 4 rotated controls. A hit is a
|
|
73
|
+
# locator: measure its points on the images (--verify: one ~32 MB CCD per point; or forced) before using them.
|
|
74
|
+
orbitsift lov cand.psv --dry-run --json
|
|
75
|
+
orbitsift lov cand.psv --json
|
|
76
|
+
orbitsift lov cand.psv --verify --json # a point with status "failed" is unknown, not absent: re-run
|
|
77
|
+
|
|
78
|
+
# 4e. A DESIGNATED object with a short or old arc: its published rows seed the multi-year growth along its corridor
|
|
79
|
+
# (catalogue from 'seeds --catalogue' over the tiles of --plan; frozen rule; always the 3 shift controls too).
|
|
80
|
+
orbitsift recover "2016 SS57" --plan 56000 58850 --json
|
|
81
|
+
orbitsift recover "2016 SS57" --catalogue region/catalogue.npz --kernel de440s.bsp --json
|
|
82
|
+
|
|
83
|
+
# 5. Archival images: forced photometry where the orbit predicts the object (32 MB per CCD). failed > 0 (a service did not
|
|
84
|
+
# answer for a CCD's calibration) means not complete: re-run, it is not "not on the image".
|
|
85
|
+
orbitsift forced cand.psv --dry-run --json
|
|
86
|
+
orbitsift forced cand.psv --plot --json
|
|
87
|
+
|
|
88
|
+
# 5b. Other archives (CFHT, VST, PS1; SMOKA/Gemini listed only): grow a short arc; SSOIS gets clone elements only.
|
|
89
|
+
orbitsift extend cand.psv --dry-run --json
|
|
90
|
+
orbitsift extend cand.psv --json
|
|
91
|
+
|
|
92
|
+
# 5c. extend leaves each new night out once (on by default): is it predicted by an orbit fitted without it?
|
|
93
|
+
orbitsift extend cand.psv --json
|
|
94
|
+
|
|
95
|
+
# 5d. An independent image test on exposures the rows never used (local exposure tables; only ids are sent; frozen
|
|
96
|
+
# rule; control rates printed beside the verdict). Dry run first: it says how many CCDs (~32 MB each) it needs.
|
|
97
|
+
orbitsift confirm cand.psv --exposures decam.csv.gz --dry-run --json
|
|
98
|
+
orbitsift confirm cand.psv --exposures decam.csv.gz --json # verdict full_bar / stack_confirmed / probable / not_confirmed ...
|
|
99
|
+
|
|
100
|
+
# 6. Neptune-Trojan candidates (a near 30.1 AU): libration of the orbit clones.
|
|
101
|
+
orbitsift libration cand.psv --json
|
|
102
|
+
|
|
103
|
+
# 6b. Dynamical class (multi-opposition arcs only; minutes; extra 'rebound').
|
|
104
|
+
orbitsift classify cand.psv --json
|
|
105
|
+
|
|
106
|
+
# 7. A report file for the human: accepted forced measurements (edit "accepted" in the JSON to choose).
|
|
107
|
+
orbitsift export-ades OS0001_forced.json -o report.psv --submitter "NAME" --json # <trk>_forced.json; read the warnings
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Other searches: `run --tile RA DEC --blocks 3` (cross-tile, objects near 30 AU that leave their tile), `run --tile RA
|
|
111
|
+
DEC --near` (8-35 AU, any direction; data 2.5 deg around the tile), `--mode far` (80-1500 AU) or `--mode mid`
|
|
112
|
+
(15-30 AU), `--mode dense` (25-80 AU, crowded tiles: the survey's anchor linker with exposure cap and clump mask; links
|
|
113
|
+
stay in one season; build `./native` first, the Python fallback is hundreds of times slower there). Images the NSC DR2 does not cover: `extract IMAGE MASK` builds a single-epoch catalogue
|
|
114
|
+
([guide](docs/guide-catalogue.md)). Rubin Observatory: `rubin --tile RA DEC --start D --end D` makes the standard tables from public
|
|
115
|
+
alerts, `--site X05 link --tile RA DEC --rows rubin` links them, `export-ades LINKS --links K` writes their rows; `vet` does not
|
|
116
|
+
run on them, so a link there has had no veto and no control: say so ([docs/RUBIN.md](docs/RUBIN.md)). Guides for humans, with real outputs: [docs/guide-*.md](docs/).
|
|
117
|
+
|
|
118
|
+
`precover` does not change your PSV. To use precovered detections, add their points (from the
|
|
119
|
+
candidate's `points` in `<trk>_precovery.json`: mjd, ra, dec, mag, band; astCat Gaia2) to the PSV and
|
|
120
|
+
refit; or run `forced` on those dates.
|
|
121
|
+
|
|
122
|
+
## Cost and politeness
|
|
123
|
+
|
|
124
|
+
All services are public and shared; they have no account, no quota you can see, and real people
|
|
125
|
+
behind them.
|
|
126
|
+
|
|
127
|
+
| Service | Used by | Typical cost |
|
|
128
|
+
|---|---|---|
|
|
129
|
+
| Astro Data Lab TAP (NSC DR2) | `fetch`, `link`, `run`, `vet` (static check), `precover`, `lov`, `export-ades` | 20-200 s per tile download (0.5-10 MB); 1 query per detection for the static check |
|
|
130
|
+
| NOIRLab Astro Data Archive | `forced`, `lov --verify` | 5-120 s per CCD search; ~32 MB per CCD download |
|
|
131
|
+
| Gaia archive TAP | `forced` | one bulk query per 40 CCDs |
|
|
132
|
+
| JPL sb_ident | `vet --ident` | seconds to minutes per field, one request at a time; two passes by default (`[vet] ident_two_pass`; `ident_backend = "skybot"` is faster but first-pass quality) |
|
|
133
|
+
| JPL DE440s kernel | `libration`, `classify` | 32 MB once (astropy cache) |
|
|
134
|
+
| CADC SSOIS, CADC data, ESO archive, MAST PS1 | `extend` | 20-120 s per SSOIS search (one per clone, 24 per iteration); cutouts of 0.2-2 MB, VST raw frames ~250 MB (deleted once cut) |
|
|
135
|
+
| MPC bulk orbit files, MPC get-obs | `known-check` | Distant.txt 2 MB once a day (MPCORB.DAT.gz ~80 MB with `--mpcorb`); one get-obs query per screened pair, by designation |
|
|
136
|
+
| MPC validator | `export-ades --validate` | only when the user asks |
|
|
137
|
+
| Fink broker (Rubin alerts) | `rubin` | 2 requests per tile and date range (~1 MB, seconds), cached; a shared service with no stated limits ("Do not abuse!"): tiles one after the other, and ask the user before a region of hundreds |
|
|
138
|
+
|
|
139
|
+
- OrbitSift spaces requests to each host (1 s) and runs at most 2 at a time per host, 1 for JPL
|
|
140
|
+
sb_ident (`[net]` settings). **Do not raise these, and do not run several OrbitSift processes in
|
|
141
|
+
parallel against the same service**: the limits are per process.
|
|
142
|
+
- A survey is limited by the TAP service, not by the CPU: hundreds of tiles take days of wall time.
|
|
143
|
+
Keep the cache (`--cache-dir` / `$ORBITSIFT_CACHE`) between runs.
|
|
144
|
+
- On exit code 3, wait and re-run; do not loop on retries (each request already retries with backoff
|
|
145
|
+
up to 5 times).
|
|
146
|
+
|
|
147
|
+
Runtimes measured on a laptop core (10 Nov 2026; dense 15 Nov): `link --mode dense` on a cached tile 0.01-0.05 s of linking
|
|
148
|
+
with the compiled core (validation tiles), `run --tile` on a cached tile 2-20 s plus the static check
|
|
149
|
+
(minutes, network); `run --blocks 3` about 80 s of linking on a 3x3 block of 89,000 detections; `--near` loads
|
|
150
|
+
~40 tiles; `extend` 5-30 min (network); `classify` 7 s for 2 Myr x 11 orbits (10 Myr x 51 orbits scales to ~3 min, more with close encounters); `extract`
|
|
151
|
+
~0.5 s per CCD; `pytest` 4-5 min offline; `python benchmarks/validate.py --quick` 30 s, full 20 min.
|
|
152
|
+
|
|
153
|
+
## Where data goes
|
|
154
|
+
|
|
155
|
+
Downloads (catalogue tiles, archive answers, CCDs, cutouts, the DE440s kernel) go to the cache
|
|
156
|
+
(`~/Library/Caches/orbitsift`, `~/.cache/orbitsift`, `%LOCALAPPDATA%\orbitsift\Cache`, or `--cache-dir` /
|
|
157
|
+
`$ORBITSIFT_CACHE`); CCDs are ~32 MB each, so watch the disk on long `forced` runs. Outputs (`*_links.json`,
|
|
158
|
+
`*_vet.json`, `<trk>_*.json`, PSV files) go to the working directory or `--outdir` / `-o`. Nothing is written
|
|
159
|
+
anywhere else, and nothing is uploaded.
|
|
160
|
+
|
|
161
|
+
## Pitfalls
|
|
162
|
+
|
|
163
|
+
- **Frames.** Every state vector (orbit `x0`/`v0`, samples, `predict` input) is **barycentric
|
|
164
|
+
equatorial** (ICRS axes, AU, AU/day, epoch JD TDB). Elements are ecliptic J2000, barycentric and
|
|
165
|
+
heliocentric (`elements_helio` compares with JPL and the MPC). Outputs carry `frame` and `center`.
|
|
166
|
+
Use `orbit.convert` before feeding vectors to code that expects ecliptic or heliocentric ones.
|
|
167
|
+
- **Time order.** `orbit.Arc` accepts unsorted points, but keep your own arrays time-sorted when you
|
|
168
|
+
pair them with other data. NSC `mjd` is the exposure *start*; ADES and fits use mid-exposure times
|
|
169
|
+
(`vet` and `export-ades` convert).
|
|
170
|
+
- **Archive row limits.** The archive's SIA search returns at most `limit` rows and flags the cut;
|
|
171
|
+
OrbitSift repeats it until complete. Cached searches named `vohdu_` (old versions) may be truncated:
|
|
172
|
+
delete them.
|
|
173
|
+
- **Known-object lookups**: sb_ident's second pass integrates the orbits (sub-arcsecond for good
|
|
174
|
+
orbits), but objects with poor orbits can still be degrees off, and recent short-arc discoveries are
|
|
175
|
+
missed by a backward check. A short `known` list is not proof of novelty: run `known-check` (it compares at the
|
|
176
|
+
designated objects' own dates) and repeat it after the MPC's daily updates.
|
|
177
|
+
- **`CERTIFICATE_VERIFY_FAILED`** on JPL: Python's CA bundle is outdated; `export SSL_CERT_FILE="$(python -m
|
|
178
|
+
certifi)"` after `pip install certifi`. Do not disable verification.
|
|
179
|
+
- **NSC DR2 ends in 2019** and reaches V ~ 23-23.5; `forced` reaches later DECam images.
|
|
180
|
+
- **`extract` keeps DQ code 7** (CP "diff detect", movers in repeat sequences) unless `--mask-dq7`; catalogues built
|
|
181
|
+
with it masked miss most movers in sequences of >= 10 same-band exposures.
|
|
182
|
+
- **`--mode dense`** links fewer chance alignments (no control link on the validation tiles) but misses objects that
|
|
183
|
+
span seasons or have fewer than 6 nights and no night with two detections: run the default linker too where recall
|
|
184
|
+
matters. Its `not_searched: too_dense` is a tile left out, not an empty one.
|
|
185
|
+
- **Short arcs.** Days-to-weeks arcs give distance and inclination, not a and e. Do not classify a
|
|
186
|
+
dynamical class (detached, resonant, Trojan) from a one-season arc (`classify` refuses arcs under
|
|
187
|
+
300 days and sigma_a/a > 5%). Short-arc covariances are optimistic far from the arc: search the
|
|
188
|
+
whole clone cloud (`extend`, `--cloud both`), not the nominal position.
|
|
189
|
+
- **Four-night links** in dense fields appear in rotated controls about as often as in the data; they
|
|
190
|
+
are leads, not candidates.
|
|
191
|
+
- **Non-DECam data.** NSC DR2 also holds Mosaic3 (695) and 90Prime (V00) exposures; linking assumes
|
|
192
|
+
one site (`--site`, default W84); ADES export uses the right station per measurement.
|
|
193
|
+
- **astCat.** NSC DR2 positions are Gaia DR2 based (`Gaia2`), forced positions are tied to Gaia DR3
|
|
194
|
+
(`Gaia3`). Keep each row's own value; `export-ades` warns about mismatches and about nights with a
|
|
195
|
+
single observation (the MPC discourages them).
|
|
196
|
+
- **Archival data and the MPC.** Reports from archival W84 data need SARC approval: the human who
|
|
197
|
+
submits contacts the archive's SARC member first.
|
|
198
|
+
|
|
199
|
+
## Published backends (optional)
|
|
200
|
+
|
|
201
|
+
For results that go into a paper, delegate the orbit fit to Find_Orb, the libration integration to
|
|
202
|
+
REBOUND and the forced measurements to photutils; the internal ones stay the defaults (and are what the
|
|
203
|
+
search uses):
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
orbitsift fit cand.psv --backend findorb --json # needs fo ($ORBITSIFT_FINDORB or PATH) with a JPL DE file
|
|
207
|
+
orbitsift forced cand.psv --backend findorb --json # confirmation refit with Find_Orb
|
|
208
|
+
orbitsift libration cand.psv --backend rebound --fit-backend findorb --json # pip install "orbitsift[rebound]"
|
|
209
|
+
orbitsift forced cand.psv --measure photutils --backend findorb --json # pip install "orbitsift[photutils]"
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
- `fit` (default `--backend auto`) goes to Find_Orb by itself for arcs of >= 2 seasons (`[orbit] findorb_min_seasons`) when `fo` is installed; without it the
|
|
213
|
+
internal fit is made and `result.warnings` holds `long_arc_internal_fit`: report it, do not quote those uncertainties.
|
|
214
|
+
- Exit 2 if the backend is missing or Find_Orb has no JPL DE ephemeris; set it up, do not fall back silently.
|
|
215
|
+
- Read `result.findorb.n_rejected`: Find_Orb drops 3-sigma outliers; `rms_arcsec` still covers every row.
|
|
216
|
+
- Its state/covariance are at Find_Orb's epoch (`t0_jd_tdb`), not at the internal one.
|
|
217
|
+
- Do not pass settings on fo's command line yourself (`KEY=VALUE`): fo saves them into the user's
|
|
218
|
+
`~/.find_orb/environ.dat`.
|
|
219
|
+
- Forced measurements from `--measure photutils` carry `backend: "photutils"`; do not mix them with
|
|
220
|
+
internal ones in a result you call photutils-only.
|
|
221
|
+
- Report disagreements between backends to the user (numbers), do not pick the one you like.
|
|
222
|
+
|
|
223
|
+
## Extending
|
|
224
|
+
|
|
225
|
+
Plugins (sources, vetters, commands, exporters) are entry points: [docs/plugins.md](docs/plugins.md).
|
|
226
|
+
`orbitsift plugins --json` shows what is installed and why a plugin did not load.
|
|
227
|
+
|
|
228
|
+
When the user asks for something OrbitSift does only in part or not at all and you build the solution (a script, a
|
|
229
|
+
fit, a check), propose to the user turning it into a plugin (sources, vetters, commands or exporters;
|
|
230
|
+
[docs/plugins.md](docs/plugins.md)) and publishing it, because others with the same problem can use it. Ask first and
|
|
231
|
+
publish nothing yourself; no data, positions or orbits of undesignated objects go into a plugin. Example:
|
|
232
|
+
[plugins/satellites](plugins/satellites) (`satfit`, `satmoons`) grew out of the scripts of one satellite check.
|
|
233
|
+
|
|
234
|
+
## Development checks
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
pip install -e ".[test]"
|
|
238
|
+
pytest -q # offline tests, 4-6 min (fixture-bundle tests skip without the bundle)
|
|
239
|
+
python benchmarks/run.py # timings; outputs must stay identical to benchmarks/golden
|
|
240
|
+
ORBITSIFT_NATIVE=0 pytest -q # the same without the optional Rust kernels
|
|
241
|
+
```
|