Command-line tools
The command-line entry points mirror the tracked docs/cli.rst guide. They write files only at paths you provide. Queries and plotting are opt-in; site builds do not run these commands.
Query Horizons
query-horizons requests an ephemeris and writes a Parquet file:
query-horizons "Ceres" -o ceres.parq --start 2025-01-01 --stop 2026-01-01Use an interactive plot when needed:
query-horizons "3200" -o phaethon.parq \
--start 2025-01-01 --stop 2026-01-01 \
--plot phaethon.htmlFor explicit epochs, pass comma-separated Julian dates and select their time scale:
query-horizons "Ceres" -o ceres.parq \
--epochs "2460600.5,2460601.5" --in-tdbUseful options are --start, --stop, --step, --epochs, --location, --compact/--no-compact, --plot, and --in-tdb. Check the installed command’s --help output when exact defaults matter.
Filter local ephemerides
filter-ephem accepts PQfilt expressions and writes a selected Parquet file:
filter-ephem data/*.parquet \
-f "vmag > 10" -f "vmag < 20" \
--columns desig,ra,dec,vmag -o filtered.parquetParentheses, &, |, ~, membership, and null checks are supported. Values use the original units, even when compact storage uses scaled integers. Use --no-per-file for coordinate filters such as dec > 30, because compact files store those coordinates as HEALPix indices.
The Python functions accept the same expression syntax:
import skyloc as sloc
sloc.filter_ephem(files, filters="vmag > 10 & vmag < 20")
sloc.load_compact_parq_ephem(path, filters="vmag < 10 | alpha > 100")Expression filtering uses pqfilt>=0.4.0, installed with Skyloc.
--output is required. --overwrite, --columns, and --per-file/--no-per-file control output and loading. Missing values do not satisfy comparisons; use vmag is null to select them.
For exact comparisons at compact-storage quantization boundaries, use --no-per-file to compare decoded values. Per-file filtering scales the threshold and can round differently; the tracked CLI source guide includes a worked boundary example.
Plot an ephemeris file
ephem2plotly renders a local Parquet file as interactive HTML:
ephem2plotly eph.parq -o eph.html
ephem2plotly eph.parq -o eph.html --width 1600 --height 900 \
--title "3200 Phaethon" --no-webglRead the external-data guide before making a live query, and use the API reference for exact function parameters. The source RST guide remains available as docs/cli.rst.