def filter_pacific_boundaries(boundaries_gdf, pacific_id):
"""
Filter boundaries to only those involving the Pacific plate.
Args:
boundaries_gdf: GeoDataFrame with all plate boundaries
pacific_id: Identifier for the Pacific plate
Returns:
GeoDataFrame containing only Pacific plate boundaries
"""
# Filter where PlateA or PlateB equals Pacific identifier
pacific_boundaries = boundaries_gdf[
(boundaries_gdf['PlateA'] == pacific_id) |
(boundaries_gdf['PlateB'] == pacific_id)
].copy()
print(f"Found {len(pacific_boundaries)} boundaries involving Pacific plate")
return pacific_boundaries
Filter Pacific Plate Boundaries
Filter the boundary dataset to include only boundaries relevant to the Pacific plate (where PlateA or PlateB equals the Pacific plate identifier). Use this skill to exclude irrelevant boundaries before distance calculations.
Filter Pacific Plate Boundaries by cxcscmu · fa4508c
npx get-skill add cxcscmu/filter-pacific-plate-boundaries File contents
---name: filter-pacific-plate-boundariesdescription: Filter the boundary dataset to include only boundaries relevant to the Pacific plate (where PlateA or PlateB equals the Pacific plate identifier). Use this skill to exclude irrelevant boundaries before distance calculations.metadata: source: https://skillmd.com/skills/cxcscmu/filter-pacific-plate-boundaries---```pythondef filter_pacific_boundaries(boundaries_gdf, pacific_id): """ Filter boundaries to only those involving the Pacific plate. Args: boundaries_gdf: GeoDataFrame with all plate boundaries pacific_id: Identifier for the Pacific plate Returns: GeoDataFrame containing only Pacific plate boundaries """ # Filter where PlateA or PlateB equals Pacific identifier pacific_boundaries = boundaries_gdf[ (boundaries_gdf['PlateA'] == pacific_id) | (boundaries_gdf['PlateB'] == pacific_id) ].copy() print(f"Found {len(pacific_boundaries)} boundaries involving Pacific plate") return pacific_boundaries```
cxcscmu/SkillLearnBench commit fa4508c3dc
Frequently asked questions
Run npx get-skill add cxcscmu/filter-pacific-plate-boundaries 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.
Filter the boundary dataset to include only boundaries relevant to the Pacific plate (where PlateA or PlateB equals the Pacific plate identifier). Use this skill to exclude irrelevant boundaries before distance calculations. 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.