基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill geopandas-projections命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Handles reading, populating, and saving .docx files using the python-docx library. Use this skill for any tasks involving template filling or modifying Word documents.
Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
This skill includes search capability in 13F, such as fuzzy search a fund information using possibly inaccurate name, or fuzzy search a stock cusip info using its name.
| name | geopandas-projections |
| description | Using GeoPandas coordinate projections for accurate distance calculations on geospatial data. |
When calculating distances between geographic features, you must project from geographic coordinates (lat/lon, EPSG:4326) to a projected CRS that preserves distances. Using .distance() on unprojected data gives degrees, not meters/km.
gdf.to_crs("ESRI:54032")gdf.to_crs("EPSG:6933")proj_str = f"+proj=aeqd +lat_0={lat} +lon_0={lon} +datum=WGS84 +units=m"import geopandas as gpd
from shapely.ops import nearest_points
# Load data in WGS84
gdf = gpd.read_file("data.geojson") # EPSG:4326
# Project to meters-based CRS
gdf_proj = gdf.to_crs("ESRI:54032")
# Calculate distance (returns meters)
dist = gdf_proj.geometry.distance(some_geometry_proj)
# Convert to km
dist_km = dist / 1000
The Pacific plate crosses the antimeridian (±180° longitude). Standard projections may split geometries. Solutions:
+lon_0=180 or +lon_0=-160from shapely.ops import nearest_points
# For a point to a boundary (MultiLineString)
point_proj = earthquake_point.to_crs(proj_crs)
boundary_proj = boundary.to_crs(proj_crs)
distance = point_proj.geometry.distance(boundary_proj.unary_union)