adloc-fastapi

Locate earthquakes via AdLoc phase-pick data using a FastAPI REST endpoint with structured inputs and outputs.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill adloc-fastapi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adloc-fastapi
Source: https://github.com/KaiserWhoLearns/skillsbench/tree/main/tasks/earthquake-location-determination/environment/skills/adloc-fastapi
Command: npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill adloc-fastapi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AdLoc solves the problem of accurately locating seismic events (origin time and coordinates) from phase arrival times, with robustness against outliers via RANSAC.

Core Features & Use Cases

  • FastAPI-based access to the AdLoc service for rapid location queries.
  • RANSAC-based robustness to improve resilience against noisy picks.
  • Configurable inputs via picks, stations, and a flexible config object for bounding regions and thresholds.
  • Use Case: Researchers can run seismic-event location for regional datasets or monitoring deployments using a lightweight RESTful interface.

Quick Start

Call the FastAPI endpoint at the base URL to perform a location with a sample picks and stations payload.

Frequently Asked Questions about adloc-fastapi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I locate earthquakes from noisy seismic picks via a REST API?

You can locate earthquakes from noisy seismic picks via a REST API by sending phase arrival times and station data to a FastAPI endpoint, which returns robust origin time and coordinates. The service applies RANSAC to filter outlier picks.

What is RANSAC robust earthquake location and when is it needed?

RANSAC robust earthquake location is a technique that estimates seismic origin time and coordinates while identifying and discarding outlier phase picks. It is needed when arrival time data contains noise or errors that could skew traditional location results.

How do I configure bounding regions and thresholds for earthquake location?

You configure bounding regions and thresholds for earthquake location by passing a flexible config object alongside your picks and stations payload to the API endpoint. This config defines spatial boundaries and RANSAC parameters for the location algorithm.

Can I use FastAPI for regional scale seismic monitoring workflows?

Yes, you can use FastAPI for regional scale seismic monitoring workflows. The service accepts structured picks and stations input to locate regional to local scale events, providing a lightweight RESTful interface suitable for research deployments.

Does the AdLoc FastAPI service support health checks?

Yes, the AdLoc FastAPI service supports health checks. It satisfies standard REST API requirements including a dedicated health check endpoint, structured input and output for picks and stations, and configurable location parameters.

Why are my earthquake location results inaccurate with noisy phase picks?

Earthquake location results are often inaccurate with noisy phase picks because outliers skew the origin time and coordinate estimation. Using a RANSAC-based robust location approach isolates bad picks and improves result reliability.