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
附录
其他
网格文件格式
GMT 支持的网格数据格式主要分为四大类,这四大类也可细分为更多的数据格式:
netCDF4 标准网格文件格式
netCDF3 “旧”网格文件格式
GMT 自定义二进制文件
其它网格文件格式
netCDF4 标准网格文件格式是最常见的,也最推荐使用的网格数据格式。它也是 GMT 默认的网格数据格式,一般以 .nc
或 .grd
作为文件后缀。本章也将只对 netCDF 格式做重点介绍。
GMT 所支持的所有网格文件格式在下表列出,每种网格文件格式均对应一个两字符 ID。
参数 | 描述 |
---|---|
int n_columns | Number of nodes in the x-dimension |
int n_rows | Number of nodes in the y-dimension |
int registration | 0 for grid line registration, 1 for pixel registration |
double x_min | Minimum x-value of region |
double x_max | Maximum x-value of region |
double y_min | Minimum y-value of region |
double y_max | Maximum y-value of region |
double z_min | Minimum z-value in data set |
double z_max | Maximum z-value in data set |
double x_inc | Node spacing in x-dimension |
double y_inc | Node spacing in y-dimension |
double z_scale_factor | Factor to multiply z-values after read |
double z_add_offset | Offset to add to scaled z-values |
char x_units[80] | Units of the x-dimension |
char y_units[80] | Units of the y-dimension |
char z_units[80] | Units of the z-dimension |
char title[80] | Descriptive title of the data set |
char command[320] | Command line that produced the grid file |
char remark[160] | Any additional comments |
TYPE z[n_columns*n_rows] | 1-D array with z-values in scanline format |
其它网格文件格式
除了netCDF和GMT自定义格式外,GMT还支持其它几种网格文件格式。更重要的是,GMT支持通过GDAL读取数据,因而几乎可以读取任意格式的网格文件。
GDAL所支持的光栅格式列表见: https://gdal.org/drivers/raster/index.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论