def find_pacific_plate_id(plates_gdf):
"""
Identify the correct Pacific plate identifier in the dataset.
Args:
plates_gdf: GeoDataFrame containing plate data
Returns:
String representing the Pacific plate identifier
"""
# Find plate identifier column (commonly 'PlateName', 'Name', or similar)
plate_name_col = None
for col in plates_gdf.columns:
if col.lower() in ['platename', 'name', 'plate']:
plate_name_col = col
break
if plate_name_col is None:
raise ValueError("Could not identify plate name column")
unique_plates = plates_gdf[plate_name_col].unique()
print("Unique plates:", unique_plates)
# Search for Pacific plate variations
pacific_id = None
for plate in unique_plates:
if 'pac' in str(plate).lower():
pacific_id = plate
break
if pacific_id is None:
raise ValueError(f"Pacific plate not found. Available plates: {unique_plates}")
return pacific_id, plate_name_col
Identify Pacific Plate Identifier
Examine the plates dataset to find the exact identifier used for the Pacific plate (e.g., "PA", "Pacific", etc.). Use this skill early in the analysis to ensure consistent filtering across boundaries and plates.
Identify Pacific Plate Identifier by cxcscmu · 955ac21
npx get-skill add cxcscmu/identify-pacific-plate-identifier File contents
---name: identify-pacific-plate-identifierdescription: Examine the plates dataset to find the exact identifier used for the Pacific plate (e.g., "PA", "Pacific", etc.). Use this skill early in the analysis to ensure consistent filtering across boundaries and plates.metadata: source: https://skillmd.com/skills/cxcscmu/identify-pacific-plate-identifier---```pythondef find_pacific_plate_id(plates_gdf): """ Identify the correct Pacific plate identifier in the dataset. Args: plates_gdf: GeoDataFrame containing plate data Returns: String representing the Pacific plate identifier """ # Find plate identifier column (commonly 'PlateName', 'Name', or similar) plate_name_col = None for col in plates_gdf.columns: if col.lower() in ['platename', 'name', 'plate']: plate_name_col = col break if plate_name_col is None: raise ValueError("Could not identify plate name column") unique_plates = plates_gdf[plate_name_col].unique() print("Unique plates:", unique_plates) # Search for Pacific plate variations pacific_id = None for plate in unique_plates: if 'pac' in str(plate).lower(): pacific_id = plate break if pacific_id is None: raise ValueError(f"Pacific plate not found. Available plates: {unique_plates}") return pacific_id, plate_name_col```
cxcscmu/SkillLearnBench commit 955ac21b91
Frequently asked questions
Run npx get-skill add cxcscmu/identify-pacific-plate-identifier 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.
Examine the plates dataset to find the exact identifier used for the Pacific plate (e.g., "PA", "Pacific", etc.). Use this skill early in the analysis to ensure consistent filtering across boundaries and plates. 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.