#!/bin/csh
#		GMT EXAMPLE 4c
#
#		$Id: job4c.csh,v 1.7 2004/05/11 19:44:44 pwessel 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.grd -A0 -Gg_intens.grd -Nt0.75 -M
grdgradient HI_topo4.grd -A0 -Gt_intens.grd -Nt0.75 -M
#
grdview HI_geoid4.grd -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=0.5p,red >> example_4c.ps
grdview HI_topo4.grd -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
