Run2 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.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_Project-Data-to-EPSG-4087-for-Distance-CalculationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.9 KB, 165 tokens by cl100k_base, as published. Nobody here has run it
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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.