GMT 入门
GMT 实例
GMT 进阶
- 基础知识
- 表数据
- 网格文件
- 颜色表 CPT
- 标准选项
- 地图投影
- -JX: Linear, logarithmic, power, and time
- -JP: Polar/Cylindrical
- -JA: Lambert azimuthal equal area
- -JB: Albers conic equal area
- -JC: Cassini cylindrical
- -JCyl_stere: Cylindrical stereographic
- -JD: Equidistant conic
- -JE: Azimuthal equidistant
- -JF: Azimuthal gnomonic
- -JG: Azimuthal orthographic/General perspective
- -JH: Hammer equal area
- -JI: Sinusoidal equal area
- -JJ: Miller cylindrical
- -JK: Eckert equal area
- -JL: Lambert conic conformal
- -JM: Mercator cylindrical
- -JN: Robinson
- -JO: Oblique Mercator
- -JPoly: (American) polyconic
- -JQ: Equidistant cylindrical
- -JR: Winkel Tripel
- -JS: General stereographic
- -JT: Transverse Mercator
- -JU: Universal Transverse Mercator (UTM)
- -JV: Van der Grinten
- -JW: Mollweide
- -JY: Cylindrical equal area
- 配置参数
- 地学数据集
- 中国地理空间数据集
- 中文支持
- API
- 模块手册
- basemap
- begin
- clear
- clip
- coast
- colorbar
- contour
- coupe
- end
- figure
- filter1d
- fitcircle
- gmt
- gmt-config
- gmtbinstats
- gmtconnect
- gmtdefaults
- gmtget
- gmtinfo
- gmtlogo
- gmtmath
- gmtselect
- gmtset
- gmtsimplify
- gmtspatial
- gmtsplit
- gmtvector
- gmtwhich
- grd2cpt
- grd2xyz
- grdblend
- grdclip
- grdcontour
- grdconvert
- grdcut
- grdedit
- grdfill
- grdimage
- grdinfo
- grdlandmask
- grdmask
- grdmath
- grdpaste
- grdproject
- grdsample
- grdtrack
- grdtrend
- grdvector
- grdview
- grdvolume
- gshhg
- histogram
- image
- img2google
- img2grd
- kml2gmt
- makecpt
- mapproject
- mask
- meca
- nearneighbor
- plot
- polar
- project
- psconvert
- rose
- sac
- sample1d
- solar
- spectrum1d
- sph2grd
- sphdistance
- sphinterpolate
- sphtriangulate
- surface
- ternary
- text
- triangiulate
- velo
- wiggle
- x2sys_binlist
- x2sys_cross
- x2sys_datalist
- x2sys_get
- x2sys_init
- x2sys_list
- x2sys_merge
- x2sys_put
- x2sys_report
- x2sys_solve
- xyz2grd
- mgd77manage
- mgd77convert
- mgd77header
- mgd77info
- mgd77list
- mgd77magref
- mgd77path
- mgd77sniffer
- mgd77track
- legend
- docs
- subplot
- inset
附录
其他
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
basemap
- 官方文档
- 简介
绘制底图及边框
该命令用于绘制:
绘制底图边框(标注、刻度、标签等)、网格线和标题
绘制比例尺
绘制方向玫瑰、磁场玫瑰图
语法
gmt basemap
- -A[file]
不绘制图形,仅输出矩形底图的边框坐标。
该选项会将矩形底图的边框坐标输出到标准输出或文件中。使用该选项时,必须通过
下图展示了绘制方向玫瑰图时 +f 取不同值的效果:
#!/usr/bin/env bash # Showing map directional roses gmt begin basemap_ex3 gmt set FONT_LABEL 10p FONT_TITLE 12p MAP_ANNOT_OBLIQUE 34 MAP_TITLE_OFFSET 5p \ MAP_FRAME_WIDTH 3p FORMAT_GEO_MAP dddF FONT_ANNOT_PRIMARY 10p gmt basemap -R-5/5/-5/5 -Jm0.15i -Ba5f -BWSne+t"-Tdg0/0+w1i+l" -Tdg0/0+w1i+l -X1i gmt basemap -Ba5f -BwSne+t"-Tdg0/0+w1i+l+f1" -Tdg0/0+w1i+l+f1 -X2i gmt basemap -R-7/7/-5/5 -Ba5f -BwSnE+t"-Tdg0/0+w1i+l+f3" -Tdg0/0+w1i+l+f3 -X2i gmt end show
方向玫瑰图
下图展示了磁场玫瑰图以及相关配置参数:
#!/usr/bin/env bash # Magnetic rose with a specified declination gmt begin basemap_ex4 gmt basemap -R-10/-2/12.8812380332/0.661018975345+r -JOc0/0/50/60/7i -Baf -BWSne -X1.25i \ --MAP_ANNOT_OBLIQUE=34 --FONT_ANNOT_PRIMARY=12p gmt basemap -Tmg-2/0.5+w2.5i+d-14.5+t45/10/5+i0.25p,blue+p0.25p,red+l+jCM \ --FONT_ANNOT_PRIMARY=9p,Helvetica,blue --FONT_ANNOT_SECONDARY=12p,Helvetica,red \ --FONT_LABEL=14p,Times-Italic,darkgreen --FONT_TITLE=24p --MAP_TITLE_OFFSET=7p \ --MAP_FRAME_WIDTH=10p --COLOR_BACKGROUND=green --MAP_DEFAULT_PEN=2p,darkgreen \ --COLOR_BACKGROUND=darkgreen --MAP_VECTOR_SHAPE=0.5 --MAP_TICK_PEN_SECONDARY=thinner,red \ --MAP_TICK_PEN_PRIMARY=thinner,blue gmt inset begin -DjTR+w2.9i/3.9i+o0.05i -F+p+ggray95 gmt inset end echo "5.5 3.8 GMT DEFAULTS" | gmt text -R0/7/0/4 -Jx1i -F+f14p,Helvetica-Bold+jCM gmt text -F+f12p+jLM << EOF 4.1 3.50 FONT_TITLE 4.1 3.25 MAP_TITLE_OFFSET 4.1 3.00 MAP_DEGREE_SYMBOL 4.1 2.75 @;blue;FONT_ANNOT_PRIMARY@;; 4.1 2.50 @;blue;MAP_TICK_PEN_PRIMARY@;; 4.1 2.25 @;blue;MAP_ANNOT_OFFSET_PRIMARY@;; 4.1 2.00 @;blue;MAP_TICK_LENGTH_PRIMARY@;; 4.1 1.75 @;red;FONT_ANNOT_SECONDARY@;; 4.1 1.50 @;red;MAP_TICK_PEN_SECONDARY@;; 4.1 1.25 @;red;MAP_ANNOT_OFFSET_SECONDARY@;; 4.1 1.00 @;red;MAP_TICK_LENGTH_SECONDARY@;; 4.1 0.75 @;darkgreen;FONT_LABEL@;; 4.1 0.50 @;darkgreen;MAP_DEFAULT_PEN@;; 4.1 0.25 @;darkgreen;COLOR_BACKGROUND@;; EOF gmt end show
磁场玫瑰图
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论