superposition of two grid files 2D  - 2種類のデータを重ねて表示(2次元)

  使うコマンド  makecpt, grdimage, grdcontour,basemap



bash スクリプト例
#
#   superposition of two grid files  2D
#
cntgrdfile=izu.altbathy.grd    #grid data for contouring
imggrdfile=izu.mag.grd    # grid data for grdimage (color)
region=140/145/27/30      # map region
proj=M10                    # projection and scale
ticks=f1a1g1            # tick info
frame=WSne              # frame info
scale_loc=5/-1/8/0.3h   # location of color scale
cptfile=mag_grad.cpt    # color table file
climit=-400/400/100     # color table limit
cint=500                # contour interval
# plot
gmt begin izu.mag+topo/2D
    gmt makecpt -Crainbow -T$climit -Z
    gmt grdimage $imggrdfile -R$region -J$proj
    gmt grdcontour $cntgrdfile -C$cint -A$aint -L$limit -Wthinnest,black
    gmt colorbar -Dx1/-1+w8/0.3+h
    gmt basemap -B$ticks -B$frame
gmt end show
#



Tips