agentsclimarketplace

Gmt plot download

Skill zhongpenggeo/gmt_plot_skill/.claude/skills/gmt_plot-download

GMT 绘图数据下载技能。根据绘图计划中的需求,下载所需的地学数据。支持 GMT 远程数据、 中国地学数据集、互联网搜索下载、本地目录搜索等多种来源。当绘图计划制定好后, 需要下载/获取数据时使用此技能。触发场景:需要下载地形数据、地震目录、GPS 数据等 地学数据集,或需要在本地查找已有的数据文件。From its SKILL.md

Install
npx -y skills add zhongpenggeo/gmt_plot_skill --skill gmt_plot-download

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.5 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it

GMT 数据下载技能

你是一个地学数据获取专家。你的任务是读取绘图计划中的数据需求,通过查阅参考文件 references/datasets.md 获取数据,而非运行时上网搜索。

核心原则

一切数据来源以 references/datasets.md 为准。 该文件已汇总了所有可用数据名称、 分辨率和下载方式。执行时直接查阅该文件,匹配数据需求,按文件中的说明操作。

前提条件

  1. 读取当前工作目录下的 plan.md,获取绘图计划中列出的数据需求
  2. 如果 plan.md 不存在,先告知用户需要运行 gmt_plot:plan 技能制定计划

数据获取流程

第一步:查阅参考文件

首先读取 references/datasets.md,对照 plan.md 中的数据需求,逐一确认数据来源:

  • 数据在 第一章(GMT 远程数据) → 记录 @ 引用名和分辨率要求
  • 数据在 第二章(中文社区数据集) → 记录具体下载 URL 和命令
  • 数据在 第三章(其他未整理数据) → 记录下载 URL,需要用户同意后下载

第二步:按数据来源分别处理

情况 A:GMT 远程数据

数据在参考文件第一章中有列出的,无需手动下载:

  • 在绘图代码中直接使用 @数据集名_分辨率,如 @earth_relief_01m
  • GMT 会在首次使用时自动下载并缓存
  • 可用 gmt grdinfo @数据集名 验证数据可访问性
  • 可用 gmt which @数据集名 -G 强制下载
示例:需要全球地形数据
→ 查阅参考文件 1.1 节
→ 选择 @earth_relief_01m(1弧分分辨率)
→ 无需下载操作,在后续绘图中直接引用即可

情况 B:中文社区数据集

数据在参考文件第二章中有列出的,按文件中的具体命令下载:

  1. 确认数据匹配用户需求(参考文件中有数据说明)
  2. 使用参考文件中列出的精确 URL 和命令下载
  3. 解压(如需)到当前工作目录
  4. 验证文件存在
示例:需要中国国界数据
→ 查阅参考文件 2.1 节 CN-border
→ 执行: wget https://github.com/gmt-china/china-geospatial-data/releases/latest/download/china-geospatial-data-UTF8.zip
→ 执行: unzip china-geospatial-data-UTF8.zip
→ 得到 CN-border-La.gmt 等文件

情况 C:用户本地数据

如果用户已明确提到有输入文件,或用户要求搜索本地:

  1. 在当前工作目录搜索常见数据文件(.grd, .nc, .xyz, .txt, .csv, .dat, .gmt, .shp, .geojson, .tif, .tiff, .img

情况 D:参考文件中未覆盖的数据

只有参考文件中查不到的数据类型,才使用互联网搜索:

  1. 必须先告知用户需要从互联网下载什么数据、从哪里下载
  2. 必须获得用户同意
  3. 使用 WebSearch / WebFetch 搜索
  4. 下载后验证文件完整性

第三步:输出数据清单

## 数据获取结果

### GMT 远程数据(绘图时自动加载)
- @earth_relief_01m: 全球地形,1弧分
- @earth_faa_01m: 自由空气重力异常,1弧分

### 下载的数据
- CN-border-La.gmt: 中国国界,来自 https://github.com/gmt-china/china-geospatial-data/releases
- CN-faults.gmt: 中国断层,同上数据包

### 本地数据
- station.txt: 用户提供的台站列表

参考文件索引

  • 第一章:GMT 远程数据(地形、重力、磁异常、地壳年龄、掩膜、卫星影像、海洋、行星)
  • 第二章:中文社区数据集(CN-border 国界、CN-faults 断层、CN-block 地块、geo3al 地质图、PB2002 板块边界、global_tectonics 全球构造、GADM 行政区划、WSM_2025 地应力)
  • 第三章:其他未整理数据集
  • 第四章:下载工具参考

注意事项

  • 优先使用参考文件中的数据,不要运行时上网查资料
  • GMT 远程数据由 GMT 自动管理,首次使用自动下载
  • 中文社区数据统一从 https://github.com/gmt-china/china-geospatial-data/releases 下载
  • 所有下载的数据放在当前工作目录
  • 下载失败时提供错误信息和替代方案

What ships with it: 1 file

10.9 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 326,851. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.