Run2 Find Earthquake Furthest from Pacific Boundary
Identify the earthquake with the maximum distance to the Pacific plate boundary from the earthquakes within the Pacific plate. Use this skill to locate the target earthquake for final output.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_Find-Earthquake-Furthest-from-Pacific-BoundaryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.4 KB, 253 tokens by cl100k_base, as published. Nobody here has run it
def find_furthest_earthquake(earthquakes_with_distance):
"""
Find the earthquake furthest from Pacific plate boundaries.
Args:
earthquakes_with_distance: GeoDataFrame with distance_km column
Returns:
Dictionary with result earthquake data
"""
if len(earthquakes_with_distance) == 0:
raise ValueError("No earthquakes found within Pacific plate")
# Find earthquake with maximum distance
furthest_idx = earthquakes_with_distance['distance_km'].idxmax()
furthest_earthquake = earthquakes_with_distance.loc[furthest_idx]
# Extract coordinates (convert back to lat/lon from geometry)
lat = furthest_earthquake.geometry.y
lon = furthest_earthquake.geometry.x
result = {
'id': furthest_earthquake['id'],
'place': furthest_earthquake['place'],
'time': furthest_earthquake['time'],
'magnitude': furthest_earthquake['magnitude'],
'latitude': lat,
'longitude': lon,
'distance_km': round(furthest_earthquake['distance_km'], 2)
}
return result
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.