/usr/share/doc/gmt/examples/ex26/example_26.sh is in gmt-examples 5.2.1+dfsg-3build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/bash
# $Id: example_26.sh 11641 2013-06-07 00:06:36Z pwessel $
# GMT EXAMPLE 26
#
# Purpose: Demonstrate general vertical perspective projection
# GMT progs: pscoast
# Unix progs: rm
#
ps=example_26.ps
# first do an overhead of the east coast from 160 km altitude point straight down
latitude=41.5
longitude=-74.0
altitude=160.0
tilt=0
azimuth=0
twist=0
Width=0.0
Height=0.0
PROJ=-JG${longitude}/${latitude}/${altitude}/${azimuth}/${tilt}/${twist}/${Width}/${Height}/4i
gmt pscoast -Rg $PROJ -X1i -B5g5 -Glightbrown -Slightblue -W -Dl -N1/1p,red -N2,0.5p -P -K \
-Y5i > $ps
# now point from an altitude of 160 km with a specific tilt and azimuth and with a wider restricted
# view and a boresight twist of 45 degrees
tilt=55
azimuth=210
twist=45
Width=30.0
Height=30.0
PROJ=-JG${longitude}/${latitude}/${altitude}/${azimuth}/${tilt}/${twist}/${Width}/${Height}/5i
gmt pscoast -R $PROJ -B5g5 -Glightbrown -Slightblue -W -Ia/blue -Di -Na -O -X1i -Y-4i >> $ps
|