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
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.
Load and Parse Plate Boundary Data by cxcscmu · 07caf66
npx get-skill add cxcscmu/load-and-parse-plate-boundary-data File contents
---name: load-and-parse-plate-boundary-datadescription: 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.metadata: source: https://skillmd.com/skills/cxcscmu/load-and-parse-plate-boundary-data---```pythondef 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```
cxcscmu/SkillLearnBench commit 07caf66617
Frequently asked questions
Run npx get-skill add cxcscmu/load-and-parse-plate-boundary-data in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
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. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cxcscmu (@cxcscmu) published this skill. Their other Agent Skills are listed on their SkillMD profile.