color shaded relief + contour  - 陰影図に等深線を重ねる 

  使うコマンド  makecpt, grdgradient, grdimage, grdcontour, psscale, pscoast   psbasemap



bash スクリプト例
#  plot bathymetry color fill map

# parameter setting
region=130/145/25/35                    # map region east/west/south/north
proj=M10                                # map projection and scale
ticks=a5f1g5                            # boundary tick info
frame=WSne+tcnt_shade                     # boundary frame info
climit=-8000/0/1000                  # color table min/max/interval
light=0/90                             # shade direction
cint=500                                # contour interval
limit=-10000/-500                       # contour min/max
grdfile=JTOPO1_30.grd                   # input bathymetry grid file
intfile=JTOPO1_30.int                   # intencity (shade) file
cptfile=haxby_grad.cpt                  # color table
psfile=cntshade.ps                  # output postscript file name
#
# making color table
gmt makecpt -Chaxby -T$climit -Z > $cptfile
#
# making shade file - calculate gradient
gmt grdgradient $grdfile -A$light -G$intfile -Ne0.6 -V
#
# plot
gmt grdimage $grdfile -R$region -J$proj -C$cptfile -I$intfile -K -V > $psfile
gmt grdcontour $grdfile -R$region -J$proj -C$cint -Wthinnest -L$limit -K -O  -V >> $psfile
gmt psscale -D12/3/9/0.5 -C$cptfile -Bf1000a2000 -K -O -I >> $psfile
gmt pscoast -R$region -J$proj -Di -Ggray -Wthin,black -K -V -O >> $psfile
gmt psbasemap -R$region -J$proj -B$ticks -B$frame -O  -V >> $psfile
#



Tips