plate-tectonics-data-processing
Techniques for processing tectonic plate data, specifically using the PB2002 dataset. Use this skill when filtering points within plates, identifying plate boundaries, or working with global tectonic geometries in GeoPandas.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- plate-tectonics-data-processing
- description
- Techniques for processing tectonic plate data, specifically using the PB2002 dataset. Use this skill when filtering points within plates, identifying plate boundaries, or working with global tectonic geometries in GeoPandas.
03 SKILL.md 正文
Plate Tectonics Data Processing
This skill covers the use of the PB2002 (Bird, 2003) dataset for tectonic plate analysis.
1. Loading PB2002 Data
The PB2002 dataset typically consists of:
PB2002_plates.json: Polygons representing the extent of each tectonic plate.PB2002_boundaries.json: LineStrings representing the boundaries between plates.
Implementation
import geopandas as gpd
plates_gdf = gpd.read_file("PB2002_plates.json")
boundaries_gdf = gpd.read_file("PB2002_boundaries.json")
2. Filtering by Plate Name
The Plate column (or similar) in the plates dataset identifies each plate.
- Pacific Plate: Often identified as "PA" or "Pacific".
pacific_plate = plates_gdf[plates_gdf['Plate'] == 'PA']
3. Spatial Joins and Point-in-Polygon
To find which earthquakes occurred within a specific plate:
# Assuming earthquakes_gdf and plates_gdf are in the same CRS
earthquakes_in_plates = gpd.sjoin(earthquakes_gdf, plates_gdf, how="inner", predicate="within")
# Filter for a specific plate
pacific_quakes = earthquakes_in_plates[earthquakes_in_plates['Plate'] == 'PA']
4. Identifying Relevant Boundaries
Boundaries are often labeled with the names of the two plates they separate (e.g., "PA-NA" for Pacific-North America).
To get all boundaries associated with the Pacific Plate:
# Search for 'PA' in the boundary name/description column
pacific_boundaries = boundaries_gdf[boundaries_gdf['Name'].str.contains('PA')]
5. Geometric Cleanup
Tectonic datasets can sometimes have minor self-intersections or gaps.
- Use
gdf.geometry = gdf.geometry.buffer(0)to fix minor validity issues. - Use
gdf.union_all()to create a single geometry representing the entire plate or boundary set.
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.