Vantor Open Data: sample notebook

A worked notebook for Vantor Open Data, with 2 code cells and the output each one printed. On Scigantic it opens in a hosted JupyterLab with the dataset already mounted, so nothing is downloaded first.

Provider
Vantor (formerly Maxar)
License
CC-BY-NC-4.0
Format
JPEG (in sampled files)
Stored at
Amazon S3, s3://vantor-opendata (us-east-1)
Access
Free and public. No account with the data provider is needed.

The notebook

Vantor Open Data: a disaster, before and after

The Vantor Open Data Program releases high-resolution satellite imagery to help with disaster response: planning, damage assessment, and recovery. The pictures come from Vantor's (formerly Maxar) WorldView and Legion satellites at roughly 0.3 to 0.8 m per pixel, so individual buildings are visible.

The bucket is a STAC catalog (a standard index for geospatial data). It's organized by event under events/, and each scene is tagged pre or post, which makes the most intuitive satellite visualization possible: the same place, before and after a disaster. That's what we'll build.

Each image is a Cloud-Optimized GeoTIFF (COG), a full satellite strip that can be tens of gigabytes. The trick (used throughout below) is to read a COG's built-in overviews: a decimated, thumbnail-sized version that downloads in a few hundred kilobytes instead of the whole strip.

What events are in the catalog?

We start at events/catalog.json and follow its links to each event's collection, counting the scenes in each. The bucket is public, so no credentials are needed.

import json, boto3
from botocore import UNSIGNED
from botocore.client import Config

s3 = boto3.client("s3", region_name="us-east-1", config=Config(signature_version=UNSIGNED))

def get_json(key):
    return json.loads(s3.get_object(Bucket="vantor-opendata", Key=key)["Body"].read())

catalog = get_json("events/catalog.json")
print(f"{'EVENT':<34}{'SCENES':>7}   DESCRIPTION")
print("-" * 92)
for link in [l for l in catalog["links"] if l["rel"] == "child"]:
    key = link["href"].split("vantor-opendata.s3.amazonaws.com/")[1]
    col = get_json(key)
    n = sum(1 for l in col["links"] if l["rel"] == "item")
    print(f'{col["id"]:<34}{n:>7}   {col.get("description", "")[:46]}')

Output:

EVENT                              SCENES   DESCRIPTION
--------------------------------------------------------------------------------------------
Marianas-Typhoon-Bavi-Jul-2026          6   Typhoon Bavi has been intesifying as it travel
Venezuela-Earthquake-Jun-2026          49   Two earthquakes struck Venezuela a minute apar
Typhoon-Gezani-Feb-2026                 8   Cyclone Gezani made landfall on February 10, 2
Spain-Portugal-Flooding-Feb-2026        1   Heavy rains in early 2026 caused severe floodi
DRC-Ebola-May-2026                     19   A new epidemic of Ebola was reported in the It

Cyclone Gezani over Toamasina, Madagascar

Cyclone Gezani made landfall on 10 February 2026 near Toamasina, Madagascar; early estimates put 75% of buildings destroyed. The catalog has a pre scene from 4 January and a post scene from 12 February, both over the same coastal town.

They're two different satellite passes, so they don't line up pixel-for-pixel. To compare the *same ground* we:

Then we just show them side by side.

%config InlineBackend.figure_format = 'jpeg'   # keep the embedded satellite figure compact
import os
import numpy as np
import rasterio
from rasterio.enums import Resampling
import matplotlib.pyplot as plt

# Fetch only the COG byte-ranges we actually read (skip directory probing).
os.environ.setdefault("GDAL_DISABLE_READDIR_ON_OPEN", "EMPTY_DIR")

EVENT = "events/Typhoon-Gezani-Feb-2026"
PRE, POST = "B150001101A36400", "1030010122291A00"   # pre 2026-01-04, post 2026-02-12

# In a launched notebook the bucket is mounted at /mnt/archive; otherwise read the
# public COG directly over HTTPS. rasterio/GDAL handles either the same way.
from pathlib import Path
MOUNT = Path(os.environ.get("SCIGANTIC_MOUNT_PATH", "/mnt/archive"))
def cog(scene_id):
    p = MOUNT / EVENT / f"{scene_id}.tif"
    return str(p) if p.exists() else f"https://vantor-opendata.s3.amazonaws.com/{EVENT}/{scene_id}.tif"

# 1) overlap of the two footprints (both are lon/lat, EPSG:4326)
def bbox(scene_id):
    return get_json(f"{EVENT}/{scene_id}.json")["bbox"]
a, b = bbox(PRE), bbox(POST)
L, B, R, T = max(a[0], b[0]), max(a[1], b[1]), min(a[2], b[2]), min(a[3], b[3])

# 2) read a ~1200px thumbnail from the COG's overviews, then crop to [L,B,R,T]
def thumbnail(scene_id, target=1200):
    with rasterio.open(cog(scene_id)) as src:
        bnd = src.bounds
        f = max(1, int(max(src.width, src.height) / target))
        h, w = src.height // f, src.width // f
        rgb = np.transpose(src.read([1, 2, 3], out_shape=(3, h, w),
                                    resampling=Resampling.average), (1, 2, 0))
        col = lambda x: int(round((x - bnd.left) / (bnd.right - bnd.left) * w))
        row = lambda y: int(round((bnd.top - y) / (bnd.top - bnd.bottom) * h))
        c0, c1 = sorted((col(L), col(R))); r0, r1 = sorted((row(T), row(B)))
        return rgb[r0:r1, c0:c1]

pre_img, post_img = thumbnail(PRE), thumbnail(POST)

fig, ax = plt.subplots(1, 2, figsize=(11, 5.4))
ax[0].imshow(pre_img);  ax[0].set_title("BEFORE:  4 Jan 2026");  ax[0].axis("off")
ax[1].imshow(post_img); ax[1].set_title("AFTER:  12 Feb 2026 (2 days post-landfall)"); ax[1].axis("off")
fig.suptitle("Cyclone Gezani over Toamasina, Madagascar: same ground, before vs after",
             fontsize=13)
plt.tight_layout(); plt.show()
print("Each panel above was read from a multi-gigabyte COG, but only a thumbnail's worth "
      "of bytes was downloaded (via the image's internal overviews).")

Output:

Each panel above was read from a multi-gigabyte COG, but only a thumbnail's worth of bytes was downloaded (via the image's internal overviews).

Reading the picture

Same coastline, same river mouth, same street grid, but the *after* image shows the vegetation stripped brown and heavier cloud from the storm system passing through. That one comparison is the core of disaster mapping: responders use exactly these before/after pairs to find flooded areas, collapsed buildings, and blocked roads.

To explore more:

activation (the Venezuela earthquake, the Spain and Portugal floods, and so on).

it: aws s3 cp --no-sign-request s3://vantor-opendata/ .jpg .

cover, and phase (pre/post).

License: Vantor imagery is CC-BY-NC-4.0: free to use with attribution to Vantor, for non-commercial purposes.

Run it

Open this notebook to run it, see the dataset page for the full description, or browse the full catalog.