当前位置:网站首页>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/
边栏推荐
- Tik tok "founder" Yang Luyu, farewell byte?
- SQL注入 Less24(二次注入)
- Rest style
- 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
- Play with poetry - appreciate the beauty of ancient poetry
- 【一知半解】零值拷贝
- Full analysis of seven classical regression analysis methods
- 【萌新解题】爬楼梯
- 用C语言开发NES游戏(CC65)08、背景 碰撞
- 本地化、低时延、绿色低碳:阿里云正式启用福州数据中心
猜你喜欢

Developing NES games with C language (cc65) 09, scrolling

Full analysis of seven classical regression analysis methods
![[dark horse morning post] LETV 400 employees have no 996 and no internal papers; Witness history! 1 euro =1 US dollar; Stop immediately when these two interfaces appear on wechat; The crackdown on cou](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] LETV 400 employees have no 996 and no internal papers; Witness history! 1 euro =1 US dollar; Stop immediately when these two interfaces appear on wechat; The crackdown on cou

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

Brief discussion on open source OS distribution

Idea replication module

Anhui Jingzhun: Beidou satellite synchronous clock | Beidou synchronous clock | NTP network clock server

Localization, low latency, green and low carbon: Alibaba cloud officially launched Fuzhou data center

MySQL之知识点(十三)

Use Baidu PaddlePaddle easydl to complete garbage classification
随机推荐
PHP日期时间运用:添加或减去特定日期的天数
To build agile teams, these methods are indispensable
Using Arduino to develop esp8266 to build a development environment
Come to tdengine Developer Conference and have an insight into the future trend of data technology development
Not optimistic about Apple making AR, Luo Yonghao: I'll do it myself
Developing NES games with C language (cc65) 10. Game cycle
PHP date time application: add or subtract the number of days of a specific date
让arduino支持nuvotom新唐
Open source huizhichuang future | 2022 open atom global open source summit openatom openeuler sub forum was successfully held
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
With the continuous waves of infringement, the U.S. patent and trademark office began to study the impact of NFT on copyright
Developing NES games with C language (cc65) 06. Sprites
Notes on using objectanimator
用C语言开发NES游戏(CC65)11、Metatiles
Great! Jd.com developed the highly available website construction technology PDF recommended by the first brother. Prepare the water and chew it slowly
Most of the interfaces of Tiktok are already available, and more interfaces are still open. Please look forward to it
Redis实现分布式锁
开源社区三十年 | 2022 开放原子全球开源峰会开源社区三十年专题活动圆满召开
PHP gets all the dates of this week or the last seven days
Detailed deployment and configuration of CEPH cluster (II)