Вы находитесь на странице: 1из 55

GMT Generalities

Creation de cartes et de gures : GMT


4
Creation de cartes et de gures : GMT
Generalities
Sismicity map
Histogram
Seaoor age
Oceanic heat ux
Hawaiian ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 123 / 177
GMT Generalities
The Generic Mapping Tools
http://gmt.soest.hawaii.edu/
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 124 / 177
GMT Generalities
GMT - What is it? Why to use it?
GMT : Generic Mapping Tool
developed by Paul Wessel (UH)
and Walter Smith (NOAA) +
voluntaries
rst version in 1987
open source and platform
independent
data processing and manipulation (base sur UNIX tools awk,grep,sed,
etc.)
PostScript visualization
contains more than 60 individual programs
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 125 / 177
GMT Generalities
GMT users
2005: 10000+ 2011: 15000+
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 126 / 177
GMT Generalities
Data processing et manipulation
0
2
4
6
0 2 4 6
0 2 4 6
870
793
755
690 800
800
730
728
710
780
804
855
830
813
762
765 740 765
760
790
820
855
812 773
812
827 805
840
890
820
873
875
873
865 841
862 908
855
850
882 910
940
915
890
880
870
880
960
890
860
830
705
0 2 4 6
0 2 4 6
870
793
755
710
697.5
780
800
781
729
760
804
855
830
813
783.333
740
788.5
790
820
855
820
827 805 835
890
873
853
864
862.5
915
871
908
960
896
940
890
870
880
890
860
8
0
0
850
0
2
4
6
0 2 4 6
750
8
0
0
850
900
0 2 4 6
800
850
900
950
1000
0 1 2 3 4 5 6 7 8 9 10
2009 Oct 07 12:21:37 Example 14 in Cookbook
Filtering data
Gridding xyz data
Arbitrary math operations
Cut/paste grids
Data interpolation
Data extrapolation
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 127 / 177
GMT Generalities
PostScript Plotting
2D: Plots of points, lines etc.
2009 Oct 07 12:21:33 Example 3 in Cookbook
0.00
0.25
0.50
0.75
1.00
C
o
h
e
r
e
n
c
y
2
10
0
10
1
10
2
10
3
Wavelength (km)
Coherency
2
10
-1
10
0
10
1
10
2
10
3
10
4
P
o
w
e
r

(
m
G
a
l
2
k
m
)
10
0
10
1
10
2
10
3
Ship and Satellite Gravity
Input Power
Ship
Satellite
Histograms
2009 Oct 07 12:21:34 Example 6 in Cookbook
SOUTH
0.2
EAST WEST
NORTH
0 %
10 %
20 %
30 %
F
r
e
q
u
e
n
c
y
-6000 -4000 -2000 0
Topography (m)
Two types of histograms
Vector elds and Contour maps
with labels
2009 Oct 07 12:21:36 Example 13 in Cookbook
00
0
.
5
0
.
5
-2
-1
0
1
2
-2 -1 0 1 2
-
0
.2
-0.2
-
0
.2
-0.2
0
0
0
.
2
0.2
0
.2 0
.2
-2
-1
0
1
2
-2 -1 0 1 2
-0
.4
-
0
.
3
-
0
.2
-
0
.
2
-
0
.
1
-0.1
-0
.1
0
0
.1
0.1
0
.1
0
.2
0
.
2
0
.3
0
.4
-2
-1
0
1
2
-2 -1 0 1 2
-2
-1
0
1
2
-2 -1 0 1 2
z(x,y) = x * exp(-x
2
-y
2
)
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 128 / 177
GMT Generalities
PostScript Plotting
Color images from gridded or raw
xyz data
0
1
0 1
0
1
0 1
0.0
0.5
1.0
T
e
m
p
e
r
a
t
u
r
e
t =.0527
Multiple images
0
1
0 1
0
1
0 1
0
1
0 1
0
1
0 1
0
1
0 1
0.0
0.5
1.0
T
0.00
0.05

T
0
2
4
6
8
10
l
o
g
1
0

(a) (b)
(c) (d) (e)
Text, labels, legend placement
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 129 / 177
GMT Generalities
PostScript Plotting - Base maps with coastlines, rivers,
and borders
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 130 / 177
GMT Generalities
Is your GMT installed ?
Tape in the terminal
pscoast
Path conguration - add to your /.bashrc
#gmt variables
export NETCDFHOME=/usr/lib
export GMTHOME=/usr/lib/gmt
export PATH=$PATH:$GMTHOME/bin
source .bashrc
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 131 / 177
GMT Generalities
Figure Plotting
18 commands for plotting
psxy, psxyz, psbasemap, pscoast, pstext,
cmd [options] > mygure.ps
tape cmd for help
Layering - calling several commands
cmd1 -K > mygure.ps
cmd2 -O -K mygure.ps
cmd3 -O -K mygure.ps
cmd4 -O mygure.ps
K: continue (keep)
O: overlay
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 132 / 177
GMT Generalities
GMT cake
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 133 / 177
GMT Generalities
Plotting - continuation
Usual compulsory parameters
-R Region Rw/e/s/n
-J proJection linear/logarithmic, polar, cylindrical, Mollweide,
-B Bound. annot.
pscoast -R-180/180/-89/89 -JW20c -Gblack -P > test.ps
pscoast -R-180/180/-89/89 -JW20c -Gblack -Bg30/g15 -P > test.ps
Useful trick
R=` minmax -I0.01/0.01 `
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 134 / 177
GMT Generalities
Conguration les
general: /path/to/gmt/gmtdefaults
personal: /.gmtdefaults
gmtdefaults [-D | -L]
changing a parameter: gmtset (e.g. gmtset PAPER MEDIA A4+)
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 135 / 177
GMT Generalities
Plotting - nishing
Convert ps le to something more useful
ps2raster mygure.ps (convertion to jpg)
ps2raster -Tf mygure.ps (convertion to pdf)
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 136 / 177
GMT Sismicity map
Creation de cartes et de gures : GMT
4
Creation de cartes et de gures : GMT
Generalities
Sismicity map
Histogram
Seaoor age
Oceanic heat ux
Hawaiian ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 137 / 177
GMT Sismicity map
Seismicity the last 7 days
Get your data - USGS
wget http://neic.usgs.gov/neis/gis/bulletin.asc -O
quakes.dat

look at your data le (e.g. with more)

use minmax
Create your executable script

touch make map.sh

chmod u+x make map.sh

Start editing
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 138 / 177
GMT Sismicity map
Seismicity the last 7 days
Get ready - denitions
Tell that we are going to use bash

#!/bin/bash
Set GMT parameters

gmtset PAPER MEDIA A4+


Use variables

input="quakes.dat"

psfile="map seismicity.ps"
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 139 / 177
GMT Sismicity map
Seismicity the last 7 days
First step - plot world map with continents: use pscoast
Choose your projection: -Jx0.1cd

x stands for linear projection

0.1c stands for scaling factor in cm

stands for using geographic coordinates


Choose your range: -R-180/180/-89/89
Choose your frame: -B60g30WSne

60 stands for anotation each 60 degree

g30 stands for grid line each 30 degree

WSne stands for anotation on West/South/north/est


Tell to plot shorelines lled with lightgray: -W -Glightgray
Alltogether
pscoast -R-180/180/-89/89 -Jx0.1cd -B60g30WSne -Dc -Glightgray -W -P -K >
$psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 140 / 177
GMT Sismicity map
Seismicity the last 7 days
Processing and plotting data with awk and psxy
awk -F, IF NR>1 {print $4, $3, $5*0.02} $input sed s/,/./g

man awk
psxy -R -J -Gred -Wthin -Sc -O -K $psle

tape psxy for help


Redirecting output from awk as input for psxy
awk -F, { print $4, $3, $5*0.02} $input psxy -R -J -Sc -Gred -Wthin -O -K
$psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 141 / 177
GMT Sismicity map
Seismicity the last 7 days
Finally, plot your position - use echo and psxy
echo 4.825 45.7426 psxy -R -J -Gblue -Wthin -Sa0.9c -O $psle
Dont forget to close your ps le, no -K option!
Convert to pdf
ps2raster -Tf $psle
Tell the world that your map is nished
echo map $psle created
You are nished - run your script
./make map.sh
evince map seismicity.pdf
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 142 / 177
GMT Sismicity map
Seismicity the last 7 days
180 120 60 0 60 120 180
60
0
60
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 143 / 177
GMT Histogram
Creation de cartes et de gures : GMT
4
Creation de cartes et de gures : GMT
Generalities
Sismicity map
Histogram
Seaoor age
Oceanic heat ux
Hawaiian ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 144 / 177
GMT Histogram
Histogram - use pshistogram
0
10
20
30
40
50
60
N
b

o
f

e
a
r
t
h
q
u
a
q
u
e
s
1 2 3 4 5 6 7
Magnitude
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 145 / 177
GMT Histogram
Histogram
Prepare your data: awk -F, IF NR>1 {print $?} $inputdata
Examine them: use minmax
Use them as an input for gmt program pshistogram: use pipe
Find parameters for pshistogram

Range -Rxmin/xmax/ymin/ymax

ProJection -JX20c/10c

Boundary -Ba1g1:"Magnitude":/a10f5:"Nb of
earthquaques":WSne

choose bin-Width -W?

-Ggray -Lthin -P
Alltogether
awk -F, IF NR>1 {print $?}$inputdata pshistogram
-Ba1g1:Magnitude:/a10f5:Nb of earthquaques:WSne -R?/?/?/? -JX20c/10c
-Ggray -Lthin -W? -P > $psle
Dont forget to replace question marks !
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 146 / 177
GMT Seaoor age
Creation de cartes et de gures : GMT
4
Creation de cartes et de gures : GMT
Generalities
Sismicity map
Histogram
Seaoor age
Oceanic heat ux
Hawaiian ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 147 / 177
GMT Seaoor age
Seaoor age map
0 20 40 60 80 100 120 140 160 180 200 220 240 260
Seafloor Age [my]
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 148 / 177
GMT Seaoor age
Seaoor age map
Get your data from EarthByte
use wget or click strategy

http://www.earthbyte.org/Resources/agegrid2008.html

download grids - age

look at README to nd out which data to download and download


them (a simple ASCII le - long, lat, age - is desirable).

unzip your le

bunzip2

bzip2 -d

examine your data

the size (ls -l -h | grep age)

the range (minmax)


wget ftp://ftp.earthbyte.org/earthbyte/agegrid/2008/Grids/age.3.6.xyz.bz2
Data le is big - extract each 10
th
line

$ awk 0==NR % 10 mydatale.xyz > mydatale.xyz.coarse


M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 149 / 177
GMT Seaoor age
Seaoor age map - Lets start
Create your executable script

touch make map seafloorage.sh

chmod u+x make map seafloorage.sh

Start editing
General rules to keep in mind when writing a script

comment all you are writing

hash tag #

dene variables

psle=map age seaoor.ps


M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 150 / 177
GMT Seaoor age
Seaoor age map - Get ready - denitions
Tell that we are going to use bash

#!/bin/bash -e

Note the -e option for handling errors


Set GMT parameters

gmtset PAPER MEDIA A4+


Dene input and output varibles

input="myinputfile.xyz.coarse"

psfile="map age seafloor.ps"


M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 151 / 177
GMT Seaoor age
Seaoor age map - Step by step
Converting an ASCII table to grd le format

xyz2grd
Reading a grdle and making a color palette le

grd2cpt
Creating colored image from a 2-D grd le

grdimage
Plotting land-masses, water-masses, coastlines, borders, and rivers

pscoast
Creating colorscale for your map

psscale
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 152 / 177
GMT Seaoor age
Seaoor age map
xyz2grd
Mandatory parameters

xyzfile - File holding (x,y,z) values

-G - Dene name of the binary output grdle

-I - Dene grid spacing

-R - Specify the region of interest


Options

-fg - Geographic formating for i/o


xyz2grd $inputdata -R-180/180/-90/90 -I10m/10m -fg -Gage.grd
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 153 / 177
GMT Seaoor age
Seaoor age map
grd2cpt
Mandatory parameters

grdfile - Grd binary le created with xyz2grd


Options

-C - Select the color table

-I - Inverse the sense of color progression

-Z - Create a continuous color palette


All must be redirected to cpt le
grd2cpt age.grd -Crainbow -Z -I > age.cpt
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 154 / 177
GMT Seaoor age
Seaoor age map
grdimage
Mandatory parameters

grdfile - Grd binary le created with xyz2grd

-C - Color palette table created with grd2cpt

-J - Select the map projection - Mollweide -JW


Options

-P - Select Portrait plotting mode

-K - Keep open the PostScript le

-Y - Shift origin of plot


All must be redirected to PostScript le
grdimage age.grd -R -JW20c -Cage.cpt -Ya3c -P -K > $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 155 / 177
GMT Seaoor age
Seaoor age map
pscoast
Mandatory parameters

-J - Select the map projection

-R - Specify the region of interest


Options

-B - Set map boundary tickmark intervals

-G - Color lling for continents

-P - Select Portrait plotting mode

-O - Overlay

-K - Keep open the PostScript le


All must be redirected to PostScript le
pscoast -R -J -Bg30/g15 -Gblack -P -O -K $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 156 / 177
GMT Seaoor age
Seaoor age map
psscale
Mandatory parameters

-D - Dene the position of the center/top and the dimensions of the


scale
Options

-B - Set anotation, tick and gridline interval for the colorbar

-C - Dene cptle that is used for the color palette

-O - Overlay
All must be redirected to PostScript le
Its the last step no -K option !
psscale -D10c/-0.5c/20c/0.2ch -B20:Seaoor Age [my]: -Cage.cpt -O $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 157 / 177
GMT Seaoor age
Seaoor age map - Finishing
Converting your PostScript le into a pdf le
ps2raster -A -Tf $psle
Tell the world that your map was created
echo $psle created
Cleaning
rm -f *.ps
Run your script
./make map seaoorage.sh
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 158 / 177
GMT Seaoor age
Seaoor age map - coarse data
0 20 40 60 80 100 120 140 160 180 200 220 240 260 280
Seafloor Age [my]
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 159 / 177
GMT Seaoor age
Seaoor age map - full data cover
0 20 40 60 80 100 120 140 160 180 200 220 240 260
Seafloor Age [my]
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 160 / 177
GMT Oceanic heat ux
Creation de cartes et de gures : GMT
4
Creation de cartes et de gures : GMT
Generalities
Sismicity map
Histogram
Seaoor age
Oceanic heat ux
Hawaiian ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 161 / 177
GMT Oceanic heat ux
Oceanic heat ow
Lets compute and plot the oceanic heat ow
The heat ux q
q =
490

a is the age of the seaoor in Myr for a 100My

Comes from the theory of half space cooling

For larger ages q is constant and equal to q = 47 mWm


2
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 162 / 177
GMT Oceanic heat ux
Oceanic heat ow - Step by step
Compute your data - all operations are performed on your grd le

grdmath
Use a color palette le

Will be downloaded
Creating colored image from a 2-D grd le

grdimage
Plotting land-masses, water-masses, coastlines, borders, and rivers

pscoast
Creating colorscale for your map

psscale
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 163 / 177
GMT Oceanic heat ux
Lets start
Create your executable script

touch make hf.sh

chmod u+x make hf.sh

Start editing
Tell that we are going to use bash

#!/bin/bash -e
Set GMT parameters

gmtset PAPER MEDIA A4+


Use variables

psfile="map heat flux.ps"


M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 164 / 177
GMT Oceanic heat ux
Oceanic heat ow
grdmath
490

a
= 490

1
a

Division

1 age.grd DIV
Square root

SQRT
Multiplication

490 MUL
Is equal to your new grd le

= flux.grd
grdmath 1 age.grd DIV SQRT 490 MUL = ux.grd
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 165 / 177
GMT Oceanic heat ux
Oceanic heat ow
Download a color palette le - ux.cpt
wget goo.gl/CpvN4
grdimage ux.grd -R-180/180/-90/90 -JW20c -Cux.cpt -Ya3c -P -K
> $psle
pscoast -R -J -Bg30/g15 -Dc -Gblack -P -O -K $psle
psscale -D10c/-0.5c/20c/0.2ch -C -L -B:Heat ux [mW
m@+-2@+]: -Cux.cpt -O $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 166 / 177
GMT Oceanic heat ux
Oceanic heat ow - Finishing
Convert to pdf
ps2raster -Tf $psle
Tell the world that your map was created
echo map $psle created
Run your script and look at results
./make hf.sh
evince map heat ux.pdf
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 167 / 177
GMT Oceanic heat ux
Oceanic heat ow
47 60 80 100 120 140 220 320 5000
Heat flux [mW m
2
]
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 168 / 177
GMT Hawaiian ridge
Creation de cartes et de gures : GMT
4
Creation de cartes et de gures : GMT
Generalities
Sismicity map
Histogram
Seaoor age
Oceanic heat ux
Hawaiian ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 169 / 177
GMT Hawaiian ridge
3D mesh plot of Hawaiian topography - GMT example
Making complicated images
with GMT - Lets plot 2 layer
perspective plot

First layer - shows a contour


map of the marine geoid

Second layer - shows 3D mesh


plot of the topography

Also, show the position of the


Hawaiian islands

Also, show an arrow pointing


north

Finally, add some text


0
0
4
4
4
8
8
12
1
2

1
6
4

1
6
2

1
6
0

1
5
8

1
5
6

1
5
4

1
5
2

1
5
0

1
8

2
0

2
2

2
4

2
0
2
4
T
o
p
o

(
k
m
)
Hawaiian Ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 170 / 177
GMT Hawaiian ridge
Hawaiian ridge - Step by step
Show contours of the geoid

grdcontour
Show Hawaiian islads

pscoast
Show topography in 3D

grdview
Add title for your gure

pstext
0
0
4
4
4
8
8
12
1
2

1
6
4

1
6
2

1
6
0

1
5
8

1
5
6

1
5
4

1
5
2

1
5
0

1
8

2
0

2
2

2
4

2
0
2
4
T
o
p
o

(
k
m
)
Hawaiian Ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 171 / 177
GMT Hawaiian ridge
Lets start
Get your data and extract them

wget http://goo.gl/aq1ne

tar -xzf nameofyourdatale.tar.gz


Create your executable script

touch make topo.sh

chmod u+x make topo.sh


Start editing

#!/bin/bash -e

gmtset PAPER MEDIA A4+

psfile="map topo.ps"
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 172 / 177
GMT Hawaiian ridge
Hawaiian ridge
grdcontour
Mandatory parameters

grdle

-C1 - Contours to be drawn - xed contour interval

-Jm1c - Projection - Mercator


Options

-E60/30 - Set azimuth and elevation of viewpoint

-R195/210/18/25 - Set min/max coordinates of data region

-A4 - Anotation for each fourth contour line

-X2.5c -Y2.5c - X and Y shift of origin of plot

-P - Portrait page orientation

-K - Keep open
All must be redirected to PostScript le
grdcontour HI geoid4.nc -Jm1c -E60/30 -R195/210/18/25 -C1 -A4 -G10c
-K -P -X2.5c -Y2.5c > $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 173 / 177
GMT Hawaiian ridge
Hawaiian ridge
pscoast - Plot Hawaiian islands
You already know . . .
Dont forget to set your viewpoint
Add a north-pointing map rose

-T-151/19.5/2.5c
pscoast -J -R -E60/30 -B2/2NEsw -Gblack -O -K -T-151/19.5/2.5c $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 174 / 177
GMT Hawaiian ridge
Hawaiian ridge
grdview - Plot topography
Mandatory parameters

topole

-J - Projection

-Jz0.8636c - Set projection in vertical direction

-Czero.cpt - Color palette table


Options

-R195/210/18/25/-6/4 - Set min/max coordinates of data region


Palette table - zero.cpt
echo -10 255 0 255 > zero.cpt
echo 0 100 10 100 zero.cpt
grdview HI topo4.nc -J -Jz0.8636c -Czero.cpt -E60/30 -R195/210/18/25/-6/4
-N-6/lightgray -Qsm -O -K -B2/2/2:Topo (km):neswZ -Y5c $psle
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 175 / 177
GMT Hawaiian ridge
Hawaiian ridge - Finishing
pstext - Adding title
echo 5 8 40 0.0 6 BC Hawaiian Ridge pstext -R0/10/0/10 -Jx1.5c -O
$psle
Convert to pdf
ps2raster -Tf $psle
Tell the world that your map was created
echo map $psle created
Run your script and look at results
./make topo.sh
evince map topo.pdf
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 176 / 177
GMT Hawaiian ridge
0
0
4
4
4
8
8
12
1
2

1
6
4

1
6
2

1
6
0

1
5
8

1
5
6

1
5
4

1
5
2

1
5
0

1
8

2
0

2
2

2
4

2
0
2
4
T
o
p
o

(
k
m
)
Hawaiian Ridge
M.Ulvrova, L.Pouilloux (ENS LYON) Informatique L3 Automne 2011 177 / 177

Вам также может понравиться