#!/bin/sh
#		GMT EXAMPLE 04
#
#		$Id: job4c.sh,v 1.9 2006/10/23 18:14:12 remko Exp $
#
# 3-D perspective color plot of Hawaiian topography and geoid
# GMT progs:	grdcontour, grdview, pscoast, pstext, psxyz
# Unix progs:	echo, rm
#
grdgradient HI_geoid4.nc -A0 -Gg_intens.grd -Nt0.75 -M
grdgradient HI_topo4.nc -A0 -Gt_intens.grd -Nt0.75 -M
#
grdview HI_geoid4.nc -Ig_intens.grd -JM6.75i -E60/30 -R195/210/18/25 -Cgeoid.cpt -Qi100 -K -X1.5i -Y1.25i -P -U/-1.25i/-1i/"Example 4c in Cookbook" > example_4c.ps
pscoast -J -E60/30 -R -B2/2NEsw -Gblack -O -K >> example_4c.ps
psbasemap -R -J -E60/30 -O -K -T209/19.5/1i --COLOR_BACKGROUND=red --TICK_PEN=thinner,red >> example_4c.ps
grdview HI_topo4.nc -It_intens.grd -J -JZ3.4i -Ctopo.cpt -E60/30 -R195/210/18/25/-6/4 -N-6/lightgray -Qi100 -O -K -Y2.2i >> example_4c.ps
psbasemap -J -JZ3.4i -E60/30 -R -Z-6 -O -K -B2/2/2:"Topo (km)":neZ >> example_4c.ps
echo '3.25 5.75 60 0.0 33 BC H@#awaiian@# R@#idge' | pstext -R0/10/0/10 -Jx1i -O >> example_4c.ps
rm -f *_intens.grd .gmtcommands4
