geospatial-plate-analysis
Analyze tectonic plate geometries using GeoPandas with proper coordinate projections. Use this skill whenever working with PB2002 plate boundary/plate polygon data, filtering points by plate membership, or extracting plate-specific boundaries. Triggers on: plate tectonics, tectonic plates, plate boundaries, PB2002 dataset.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- geospatial-plate-analysis
- description
- Analyze tectonic plate geometries using GeoPandas with proper coordinate projections. Use this skill whenever working with PB2002 plate boundary/plate polygon data, filtering points by plate membership, or extracting plate-specific boundaries. Triggers on: plate tectonics, tectonic plates, plate boundaries, PB2002 dataset.
03 SKILL.md 正文
Geospatial Plate Analysis
Purpose
Load and process PB2002 tectonic plate data (boundaries and plate polygons) using GeoPandas, then perform spatial operations like point-in-polygon tests and boundary extraction.
Data Format
PB2002_plates.json
- GeoJSON FeatureCollection with plate polygons
- Properties:
Code(e.g., "PA"),PlateName(e.g., "Pacific") - Geometry: Polygon or MultiPolygon (lon/lat, EPSG:4326)
- The Pacific plate ("PA") is a MultiPolygon that crosses the antimeridian (±180°)
PB2002_boundaries.json
- GeoJSON FeatureCollection with plate boundary LineStrings
- Properties:
PlateA,PlateB(two-letter plate codes),Name,Type - To get all boundaries of a plate (e.g., "PA"), filter where
PlateA == "PA"ORPlateB == "PA"
Earthquake GeoJSON (USGS format)
- Features with Point geometry:
[longitude, latitude, depth] - Properties include:
mag,place,time(Unix ms),type - Feature
idfield contains the earthquake ID
Workflow
1. Load data
import geopandas as gpd
plates = gpd.read_file("PB2002_plates.json")
boundaries = gpd.read_file("PB2002_boundaries.json")
earthquakes = gpd.read_file("earthquakes_2024.json")
All data loads in EPSG:4326 (WGS84 lon/lat).
2. Extract a specific plate polygon
pacific_plate = plates[plates["Code"] == "PA"]
3. Filter points inside a plate
Use a spatial join or within test:
quakes_in_plate = gpd.sjoin(earthquakes, pacific_plate, predicate="within")
4. Extract plate boundaries
Filter boundaries where the plate code appears in either PlateA or PlateB:
pa_boundaries = boundaries[
(boundaries["PlateA"] == "PA") | (boundaries["PlateB"] == "PA")
]
Antimeridian Handling
The Pacific plate crosses the ±180° meridian. GeoPandas handles MultiPolygon geometries
natively, so sjoin with predicate="within" works correctly for point-in-polygon tests
as long as the plate polygon is properly defined (which PB2002 data is).
Key Libraries
geopandas— spatial data frames, spatial joinsshapely— geometry operations (union, distance, nearest_points)pyproj— CRS transformations
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.