geojson-processing
Loading and processing GeoJSON earthquake and plate boundary data with GeoPandas for spatial analysis.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- geojson-processing
- description
- Loading and processing GeoJSON earthquake and plate boundary data with GeoPandas for spatial analysis.
03 SKILL.md 正文
GeoJSON Processing with GeoPandas
Loading GeoJSON Files
import geopandas as gpd
# Standard GeoJSON
gdf = gpd.read_file("file.geojson")
# USGS Earthquake GeoJSON specifics:
# - Coordinates are [longitude, latitude, depth]
# - Time is in milliseconds since epoch
# - Properties include: mag, place, time, type, id
USGS Earthquake Time Conversion
import pandas as pd
from datetime import datetime, timezone
# Convert epoch ms to ISO 8601
timestamp_ms = 1735537742808
dt = datetime.fromtimestamp(timestamp_ms / 1000, tz=timezone.utc)
iso_str = dt.strftime("%Y-%m-%dT%H:%M:%SZ")
Extracting Coordinates from GeoJSON Points
# After loading with GeoPandas
gdf["longitude"] = gdf.geometry.x
gdf["latitude"] = gdf.geometry.y
Writing Results to JSON
import json
result = {
"id": "us6000pgf9",
"place": "13 km NW of Port-Vila, Vanuatu",
"time": "2024-12-30T03:29:02Z",
"magnitude": 5.1,
"latitude": -17.6555,
"longitude": 168.2183,
"distance_km": 1234.56
}
with open("answer.json", "w") as f:
json.dump(result, f, indent=2)
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.