Run3 load and preprocess spatial data
Load earthquake GeoJSON and plate boundary datasets, and ensure consistent projection for distance analysis.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run3_load_and_preprocess_spatial_dataAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.9 KB, 177 tokens by cl100k_base, as published. Nobody here has run it
To accurately calculate distances, both the earthquake points and the tectonic plate boundaries must be reprojected into an equal-area projected coordinate system (e.g., EPSG:6933 for global equal-area) to ensure distance measurements are in meters.
- Load
earthquakes_2024.jsoninto a GeoDataFrame, setting the geometry from coordinates and EPSG:4326. - Load
PB2002_boundaries.jsonandPB2002_plates.json. - Filter
PB2002_boundariesto select only those segments that border the "Pacific" plate (checking theLeftPlateandRightPlateattributes). - Project all GeoDataFrames to a consistent meters-based CRS.
- Use
unary_unionon the filtered boundary GeoSeries to create a single geometry object representing the entire Pacific plate boundary perimeter.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.