color shaded relief - 陰影図をつくる(光をあてて立体的にみせる)

  使うコマンド  makecpt, grdgradient, grdimage, colorbar, coast   basemap



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+tcolor_shade                     # boundary frame info
climit=-8000/0/1000                  # color table min/max/interval
light=0/90                             # shade direction
grdfile=JTOPO1_30.grd                   # input bathymetry grid file
intfile=JTOPO1_30.int                   # intencity (shade) file
#
#
# plot
gmt begin colshade
     gmt makecpt -Chaxby -T$climit -Z
     gmt grdgradient $grdfile -A$light -G$intfile -Ne0.6
     gmt grdimage $grdfile -R$region -J$proj -I$intfile
     gmt colorbar -DJMR -B1000a2000
     gmt coast -Di -Ggray -Wthin,black
     gmt basemap -B$ticks -B$frame
gmt end show
#


Tips