openquake.hme.utils.io.api_clientΒΆ

API client for loading flatfile data from the Ground Motion API server.

This module provides a drop-in replacement for load_flatfile() that queries a remote API instead of loading from CSV files.

Functions

compute_rupture_bbox(rupture_gdf[, ...])

Compute bounding box from rupture locations with buffer.

load_flatfile_from_api(base_url[, min_mag, ...])

Load flatfile data from API server.

load_flatfile_from_api_with_cells(base_url)

Load flatfile data from API using H3 cell filtering.

Exceptions

APIClientError

Exception raised for API client errors