def project_for_distance_calculation(earthquakes_gdf, boundaries_gdf):
"""
Reproject both datasets to EPSG:4087 for accurate distance calculation.
Args:
earthquakes_gdf: GeoDataFrame with earthquake points (EPSG:4326)
boundaries_gdf: GeoDataFrame with boundaries (EPSG:4326)
Returns:
Tuple of (reprojected_earthquakes, reprojected_boundaries)
"""
# Reproject to EPSG:4087 (World Equidistant Cylindrical)
earthquakes_proj = earthquakes_gdf.to_crs('EPSG:4087')
boundaries_proj = boundaries_gdf.to_crs('EPSG:4087')
return earthquakes_proj, boundaries_proj
Project Data to EPSG:4087 for Distance Calculation
Reproject earthquake points and boundary geometries to EPSG:4087 (World Equidistant Cylindrical) before calculating distances. Use this skill to ensure accurate distance measurements in kilometers.
Project Data to EPSG:4087 for Distance Calculation by cxcscmu · bd8f121
npx get-skill add cxcscmu/project-data-to-epsg-4087-for-distance-calculation File contents
---name: project-data-to-epsg-4087-for-distance-calculationdescription: Reproject earthquake points and boundary geometries to EPSG:4087 (World Equidistant Cylindrical) before calculating distances. Use this skill to ensure accurate distance measurements in kilometers.metadata: source: https://skillmd.com/skills/cxcscmu/project-data-to-epsg-4087-for-distance-calculation---```pythondef project_for_distance_calculation(earthquakes_gdf, boundaries_gdf): """ Reproject both datasets to EPSG:4087 for accurate distance calculation. Args: earthquakes_gdf: GeoDataFrame with earthquake points (EPSG:4326) boundaries_gdf: GeoDataFrame with boundaries (EPSG:4326) Returns: Tuple of (reprojected_earthquakes, reprojected_boundaries) """ # Reproject to EPSG:4087 (World Equidistant Cylindrical) earthquakes_proj = earthquakes_gdf.to_crs('EPSG:4087') boundaries_proj = boundaries_gdf.to_crs('EPSG:4087') return earthquakes_proj, boundaries_proj```
cxcscmu/SkillLearnBench commit bd8f12118d
Frequently asked questions
Run npx get-skill add cxcscmu/project-data-to-epsg-4087-for-distance-calculation 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.
Reproject earthquake points and boundary geometries to EPSG:4087 (World Equidistant Cylindrical) before calculating distances. Use this skill to ensure accurate distance measurements in kilometers. It is listed under Coding & Dev Tools 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.