Earthquake plate calculation

From XuShuwenn/RedAct · View interactive version

Earthquake plate calculation is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Find the earthquake furthest from the Pacific plate boundary within the Pacific plate using GeoPandas and distance calculations.

How to use this skill

Skill file

Earthquake Pacific Plate Distance Analysis

When to Use

Input Files

Output Format

JSON at /root/answer.json:

{
  "id": "earthquake_id",
  "place": "location description",
  "time": "",
  "magnitude": ,
  "latitude": ,
  "longitude": ,
  "distance_km":
}

Execution Protocol

Execution Protocol

Key Steps

  1. Load earthquake data with GeoPandas
  2. Load plate polygons and explicitly confirm which feature is the Pacific plate (do not assume the code/name without inspection)
  3. Filter earthquakes within the confirmed Pacific plate polygon
  4. Load plate boundary lines and verify the selected boundary features correspond to the Pacific plate
  5. Calculate each earthquake's minimum distance to the verified Pacific plate boundary using a geodesic-aware method suitable for Pacific-wide / antimeridian-spanning geometry; do not rely on a single planar CRS for all point-to-boundary distances unless you explicitly validate it against a geodesic check
  6. Find the earthquake with the maximum validated distance
  7. Round distance_km to 2 decimal places

Validation

Validation

Tips

Final Check

Final Check

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.