当前位置:网站首页>GMT安装与使用
GMT安装与使用
2022-07-28 11:34:00 【RS&Hydrology】
最近看到大家用GMT绘制的图形非常好看,这里记录一下学习GMT的笔记(只记录关键步骤)。
一、GMT安装
参考https://github.com/zhongpenggeo/GMT_demo/blob/master/GMT%E5%88%B6%E5%9B%BE%E7%BB%8F%E9%AA%8C/0-0-Windows%E4%B8%8B%E5%AE%89%E8%A3%85GMT.md
1.下载:
GMT:https://www.generic-mapping-tools.org/download/
Ghostscript:https://www.ghostscript.com/releases/gsdnld.html
2.安装
测试安装:安装完成后,点击“开始”→“所有程序”→“附件”→“命令提示符”以启动 CMD。在 CMD 窗口中敲入 gmt --version,若出现 GMT 版本号则表示 GMT 安装成功。
3.使用
GMT 是一个纯命令行软件,没有任何的图形界面。所有的绘图操作都需要通过在终端和脚本中执行命令来完成。Windows 下的默认终端是 “命令提示符”,也就是 CMD 命令行。
使用方法:https://docs.gmt-china.org/latest/tutorial/get-started/windows/#gmt
- 一个 GMT 命令通常由 gmt + 模块名 + 选项 + 参数 构成。
- 用文本编辑器创建一个后缀名为 .sh 的文件,向其中写入 Bash 命令并保存,即得到一个 Bash 脚本。
- Git Bash 源自 MinGW, 是一个用于开发原生 Window 应用的开发环境, 提供了针对 WIn32 应用的 GCC、GNU binutils 等工具.
- Windows 下的 Powershell 并不好用,或者说我并不知道如何使用。既然相较之下,更熟悉 Linux 命令行,就干脆把 Git Bash 当作默认终端了。
(1)新建一个.sh文件:https://blog.csdn.net/qq_36920008/article/details/84894242
(4)绘图知识
https://docs.generic-mapping-tools.org/latest/cookbook/features.html#gmt-modern-mode-hierarchical-levels
C = makecpt(cmap="red,green,blue", range="0,100,300,10000");
coast(region=(130,150,35,50), land=:gray, proj=:merc)
plot!("@tut_quakes.ngdc", incols="4,3,5,6s0.1", header=3, symbol="cc", markerline=:faint, color=C, show=true)
参考资料:
GMT中文资料:https://docs.gmt-china.org/latest/tutorial/basemap/
边栏推荐
- Some API interfaces purchased by Yiwu hope to bring you some help
- Developing NES games with C language (cc65) 04. Complete background
- 8000 word explanation of OBSA principle and application practice
- Live: never believe that suffering is worth it. Suffering is suffering
- 用C语言开发NES游戏(CC65)05、调色板
- Tencent two sides: @bean and @component are used in the same class, what will happen?
- 用C语言开发NES游戏(CC65)08、背景 碰撞
- 开源社区三十年 | 2022 开放原子全球开源峰会开源社区三十年专题活动圆满召开
- 让arduino支持nuvotom新唐
- Exploration on cache design optimization of community like business
猜你喜欢

Kuzaobao: summary of Web3 encryption industry news on July 13

HMS core audio editing service supports 7 kinds of audio effects to help one-stop audio processing

Developing NES games with C language (cc65) 10. Game cycle

Sub database and sub table may not be suitable for your system. Let's talk about how to choose sub database and sub table and newsql

Exploration on cache design optimization of community like business

Arduino Pro Mini atmega328p connect and light the first LED (at the same time, record the problem of burning failure stk500_recv)

本地化、低时延、绿色低碳:阿里云正式启用福州数据中心

卸载 Navicat:正版 MySQL 官方客户端,真香!

分布式定时器

QT writing IOT management platform 42 data query export print
随机推荐
Developing NES games with C language (cc65) 08. Background collision
AsiaInfo technology released antdb7.0, a "Telecom grade" core transaction database, to help government and enterprises "trust" to create the future!
【vulnhub】Raven2
Use Baidu PaddlePaddle easydl to complete garbage classification
AVL树(平衡搜索树)
arduino pro mini ATMEGA328P 连线和点亮第一盏LED(同时记录烧录失败的问题stk500_recv)
新手如何快速完成建站?来免费“试衣间”体验
Most of the interfaces of Tiktok are already available, and more interfaces are still open. Please look forward to it
Laravel form data validation
SQL injection LESS18 (header injection + error injection)
SQL注入 Less18(头部注入+报错注入)
Kafaka丢消息吗
MarkDown简明语法手册
【vulnhub】presidential1
Develop NES game (cc65) 07 and controller with C language (collision with spirit)
Developing NES games with C language (cc65) 11. Metatiles
8000 字讲透 OBSA 原理与应用实践
行业落地呈现新进展 | 2022 开放原子全球开源峰会 OpenAtom OpenHarmony 分论坛圆满召开
Developing NES games with C language (cc65) 10. Game cycle
Gecko competition 2.0 is new! Come and show your flexible operation skills!