Run2 Load and Parse Plate Boundary Data
Load plate boundary GeoJSON and create a GeoDataFrame with proper geometry parsing. Verify column names (PlateA, PlateB) match the dataset structure. Use this skill to prepare boundary data before filtering for Pacific plate relevance.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_Load-and-Parse-Plate-Boundary-DataAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.0 KB, 149 tokens by cl100k_base, as published. Nobody here has run it
def load_boundary_data(filepath):
"""
Load plate boundary data and parse geometries correctly.
Args:
filepath: Path to PB2002_boundaries.json
Returns:
GeoDataFrame with boundary geometries and plate identifiers
"""
boundaries = gpd.read_file(filepath)
# Verify expected columns exist
if 'PlateA' not in boundaries.columns or 'PlateB' not in boundaries.columns:
print("Available columns:", boundaries.columns.tolist())
raise ValueError("PlateA and PlateB columns not found")
# Ensure geometry is valid
boundaries = boundaries[boundaries.geometry.is_valid]
boundaries = boundaries.reset_index(drop=True)
return boundaries
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.