Building with AI for human benefit. Sharing how it's done.
Finding ocean datasets without drowning in metadata.
Oceanographic data is scattered: NOAA, Copernicus, NASA, institutional repositories. Each has different APIs, metadata formats, and access patterns. Finding the right dataset takes longer than analyzing it.
STAC is a specification for describing geospatial data. Think of it as a standardized card catalog for Earth observation data.
Core concepts:
from pystac_client import Client
# Connect to a STAC API
client = Client.open("https://api.example.com/stac")
# Search by bounding box and time
results = client.search(
collections=["sea-surface-temperature"],
bbox=[-180, -60, 180, 60],
datetime="2024-01-01/2024-12-31"
)
for item in results.items():
print(item.id, item.properties["sst_mean"])
Major ocean data providers with STAC:
One API to find them all.