$ gmt grdinfo test3.tiff test3.tiff:Title: Grid imported via GDAL test3.tiff:Command: test3.tiff:Remark: test3.tiff: Gridline node registration used [Cartesian grid] test3.tiff: Grid file format: gd = Import/export through GDAL test3.tiff:x_min:564600x_max:640200x_inc:100name: x n_columns:757 test3.tiff:y_min:7158800y_max:7241000y_inc:100name: y n_rows:823 test3.tiff:z_min:-4458.4609375z_max:-1930.5826416name: z test3.tiff:scale_factor:1add_offset:0 +proj=utm +zone=42 +south +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs
信息显示该数据为UTM带号为42的南半球投影。代号和字母编码可以通过下图查询:
UTM代号(来源:GMT官网)
绘制经纬度地图
不转坐标,直接绘图(windows版):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
REM Test Geotif format using GMT gmt gmtset FORMAT_GEO_MAP = ddd:mmF gmt gmtset MAP_FRAME_WIDTH=2p gmt gmtset FONT_ANNOT_PRIMARY 12p,Helvetica,black FONT_LABEL 16p,Helvetica,black