Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 156

GMT-doc-4.5.2-1.fc13.noarch.rpm

#!/bin/csh
#		$Id: job20.csh,v 1.10 2009/02/23 01:19:22 remko Exp $
#		GMT EXAMPLE 20
#
# Purpose:	Extend GMT to plot custom symbols
# GMT progs:	pscoast, psxy
# Unix progs:	rm

# Plot a world-map with volcano symbols of different sizes
# on top given locations and sizes in hotspots.d

cat << END >! hotspots.d
55.5	-21.0	0.25
63.0	-49.0	0.25
-12.0	-37.0	0.25
-28.5	29.34	0.25
48.4	-53.4	0.25
155.5	-40.4	0.25
-155.5	19.6	0.5
-138.1	-50.9	0.25
-153.5	-21.0	0.25
-116.7	-26.3	0.25
-16.5	64.4	0.25
END

pscoast -Rg -JR9i -B60/30:."Hotspot Islands and Cities": -Gdarkgreen -Slightblue \
	-Dc -A5000 -K -U"Example 20 in Cookbook" >! example_20.ps

psxy -R -J hotspots.d -Skvolcano -O -K -Wthinnest -Gred >> example_20.ps

# Overlay a few bullseyes at NY, Cairo, and Perth

cat << END >! cities.d
286	40.45	0.8
31.15	30.03	0.8
115.49	-31.58	0.8
END

psxy -R -J cities.d -Skbullseye -O >> example_20.ps

\rm -f hotspots.d cities.d .gmt*