gmtset
GMT4 GMT5
——————————————+——————————————-
gmtdefaults -D > .gmtdefaults4 –> gmt defaults -D > ./gmt.conf
gmtset HEADER_FONT_SIZE 12p –> gmt set FONT_TITLE 12p
gmtset HEADER_OFFSET -0.1c –> gmt set MAP_TITLE_OFFSET -0.1c
gmtset LABEL_FONT_SIZE 6p –> gmt set FONT_LABEL 6p
gmtset ANOT_FONT_SIZE 5p –> gmt set FONT_ANNOT_PRIMARY 5p
gmtset ANNOT_OFFSET_PRIMARY 0.04c –> gmt set MAP_ANNOT_OFFSET_PRIMARY 0.04c
gmtset PLOT_DEGREE_FORMAT ddd:mm:ssF –> gmt set FORMAT_GEO_MAP ddd:mm:ssF
gmtset BASEMAP_TYPE plain –> gmt set MAP_FRAME_TYPE plain
gmtset TICK_LENGTH -0.08c –> gmt set MAP_TICK_LENGTH_PRIMARY -0.08c
gmtset FRAME_PEN 0.50p –> gmt set MAP_FRAME_PEN 0.50p
gmtset GRID_PEN 0.30p –> ???
gmtset TICK_PEN 0.50p –> gmt set MAP_TICK_PEN_PRIMARY 0.50p
gmtset MEASURE_UNIT cm –> gmt set PROJ_LENGTH_UNIT cm
gmtset PAPER_MEDIA a4+ –> gmt set PS_MEDIA a4
使用awk命令跳过注释行或空行
cat $filename |awk ‘{gsub(/^#.*/,””);print $0}’|awk ‘{gsub(/^[ \t]+$/,””);print $0}’|awk NF