Skip to main content

NEXT PASS

PyPI version Python versions CI Overpass map License

Predict the next satellite overpass for a point, bounding box, or KML AOI — supporting Sentinel‑1, Sentinel‑2, Landsat‑8, Landsat‑9, and NISAR. Optionally filter by OPERA product families, estimate cloudiness for the upcoming pass, and email results.

Live overpass map: opera-cal-val.github.io/next_pass: see which satellites will pass over your area in the coming week, right in the browser. No install needed. Updated daily.


Highlights

  • Satellites: Sentinel-1, Sentinel-2, Landsat-8, Landsat-9, NISAR
  • AOI inputs: Point (lat, lon), SNWE bounding box, or KML polygon
  • OPERA product filters: limit search to product families (e.g., DSWX-HLS_V1, DSWX-S1_V1)
  • Cloudiness prediction: for next S1/S2 overpasses (-c)
  • Email notifications: send S1/S2 results via SMTP (--email)
  • Interactive overpass map: a daily-updated GitHub Pages map of the coming week's passes, plus a local viewer (next-pass-viewer)
  • Examples included: examples/

Repo layout

next_pass/
├─ examples/            # Jupyter notebooks and sample workflows
├─ src/next_pass/       # The package: CLI, per-sensor pass modules, schedule + viewer
│  └─ viewer_assets/    # Static HTML for the interactive overpass map
├─ tests/               # Pytest suite
├─ pyproject.toml       # Packaging metadata + pixi environments + ruff config
└─ LICENSE              # Apache-2.0

Installation

Install pixi, then:

git clone https://github.com/OPERA-Cal-Val/next_pass.git
cd next_pass
pixi install
pixi run next-pass --help

For JupyterLab (with jupyter-collaboration for real-time collaborative editing):

pixi run jupyter lab

PyPI

Install into a fresh environment rather than an existing one such as conda base. Older AWS packages (boto3, botocore, aiobotocore) already installed there can make pip fail with ResolutionTooDeep.

conda create -n nextpass python=3.12 -y
conda activate nextpass
pip install --upgrade pip
pip install next-pass

uv resolves these dependencies much faster: uv pip install next-pass.

Latest code from GitHub

PyPI releases can lag behind the repository. To install the current main branch without pixi:

pip install git+https://github.com/OPERA-Cal-Val/next_pass.git

Interactive overpass map

A GitHub Actions cron job runs daily: it precomputes the passes of all supported sensors, from 12 days ago through the coming week, into a GeoParquet file and publishes it, together with an interactive map, to GitHub Pages. Set an AOI (drop a point, draw a box or polygon, upload a GeoJSON / KML / KMZ / zipped Shapefile, or type coordinates in -b order), pick sensors and a date range, and see which sensors will pass over it. The date range opens on today; move the start date back to see recent past passes. The panel shows the available range, and dates outside it cannot be selected. Built for rapidly triaging which products will be available over a disaster-response AOI. The page URL captures the search, so Copy link shares the exact same AOI and filters with a colleague.

The same map runs locally against any schedule file:

pixi run next-pass-schedule --days 7 --days-back 12 --output upcoming_passes.parquet
pixi run next-pass-viewer --data upcoming_passes.parquet

--days-back (default 0) keeps that many past days for every sensor; the map's date panel cannot go earlier. next-pass-schedule writes a GeoParquet (plus a .meta.json sidecar) with one row per planned pass: sensor, platform, mode, orbit_direction, track, begin_time/end_time (UTC), time_is_estimated, and the footprint geometry. Sentinel times come from ESA acquisition plans and NISAR times from the frame start/stop times in NASA's observation plan (within about 2 minutes of the actual pass). Landsat times are local-solar-time estimates and are flagged with time_is_estimated: roughly 15–25 min off for the next-pass CLI, which estimates at the AOI centroid, and up to ±1–2 h in the schedule, which estimates at the centroid of a whole path-level swath.


Usage

The main entry point is next-pass. Choose one AOI input form and add options as needed.

The examples below assume a pip install. With pixi, run them from the repository folder prefixed with pixi run, e.g. pixi run next-pass -b 34.20 -118.17.

All dates and times in the output are UTC.

1) Point (lat, lon)

next-pass -b 34.20 -118.17

2) Bounding box (SNWE = South North West East)

next-pass -b 34.15 34.25 -118.20 -118.15

3) KML file (polygon)

next-pass -b /path/to/aoi.kml

4) WKT coordinates (polygon or point)

next-pass -b "POLYGON ((-123.1 47.33, -123.16 47.28, -123.33 47.33, -123.25 47.34, -123.19 47.32, -123.15 47.35, -123.1 47.33))"
next-pass -b "https://api.weather.gov/alerts/urn:oid:2.49.0.1.840.0.dc03b8d7d3aa06ec27afb812ac02d6afa8b5f0ce.002.1"
next-pass -b AOI_from_url.geojson

Options

  • Satellite subset (e.g., S1 only) and email the results:

    next-pass -b 50 52 -102 -100 -s sentinel-1 --email
    
  • NISAR overpasses and acquisition times from the official NASA observation-plan KMZ:

    next-pass -b 34.15 34.25 -118.20 -118.15 -s nisar
    
  • Restrict OPERA products considered during the search (space‑separated list):

    next-pass -b 29 31 -100 -97 -p DSWX-HLS_V1 DSWX-S1_V1
    
  • Predict cloudiness for the next S1/S2 overpasses (adds a cloud estimate column):

    next-pass -b 29 31 -100 -97 -p DSWX-HLS_V1 DSWX-S1_V1 -c
    
  • Generate old OPERA products for a previous event date (YYYY-MM-DD):

    next-pass -b 17.32 18.80 -78.61 -75.58 -f opera_search -d 2025-10-01
    
  • Generate OPERA Products DRCS map using a UTC event date in format YYYY-MM-DDTHH:MM (Please consider replacing the date in the example with a recent event date):

    next-pass -b 17.32 18.80 -78.61 -75.58 -g 2025-11-18T01:00
    

Use -h/--help to see all flags and defaults.


Contributing

Issues and pull requests are welcome! If adding a new satellite, product family, or IO backend, please include a small example and a test (if applicable).

For development setup and code quality standards, see CONTRIBUTING.md.


License

Apache‑2.0 — see LICENSE.


Metadata

Release files for next-pass 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 next-pass 1.5.0
File Size Uploaded Provenance Actions
next_pass-1.5.0.tar.gz 123.4 kB Without provenance Details for next_pass-1.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 224.8 kB

Release files / next_pass-1.5.0.tar.gz

Download URL next_pass-1.5.0.tar.gz
Size 123.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af06500d0c3dbe22808e5b06729c27a60cc87661ee1b6ed57d75e284a0775fc8
BLAKE2b-256 checksum
How to use checksums
6dade2ff40eb4656a96bc58e5e1c757aeb13603e866b068204dd7895e284dd66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

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

Download URL next_pass-1.5.0-py3-none-any.whl
Size 101.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5265304ba94935cb8fef50788eb29bd5e087ba7b61055629a4ad894eb203352
BLAKE2b-256 checksum
How to use checksums
2a45662bbaf51d4013e4d13269bece02f191218fe5f4f1384196c917d8d1473d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for next-pass 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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