Update High and Full Coastline in GMT 4.5.2 on Ubuntu 10.10

If you install GMT on Ubuntu, I trust you will use “Synaptic Package Manager”.
There are many gmt packages that you can choose, but there is only “gmt-coast-low” package
without “gmt-coast-high” and “gmt-coast-full” package. It is disappointing.
However, you can install them with this package too! (manually) XD

It is say in its “Property Description” that High and Full Coastline is too big to be
contained in regular package so that you have to install them with the script contained:

This package contains the crude, low and intermediate resolution coastlines
contained in the GMT distribution which will be enough to get you started.
Originally there were two more coastline packages (gmt-coast-high and -full)
but they were to big for our servers and pulled from the distribution.

Read /usr/share/doc/gmt-coast-low/README.Debian to learn how to get coastline
data on the net. Otherwise you will not be able to create high quality
maps with gmt.

It mentions that there are a script can help us to gain another two packages, and
it is

/usr/sbin/gmt-coastline-download

you can see it in “Property -> Installed File”.

And there are two input option for this script:
1. [high|full|high-full|low|all]
2. [version]

in /usr/sbin/ type (GSHHS: Version 2.0.2 or newer is needed to use coastlines with GMT 4.5.2)

sudo gmt-coastline-download all 2.0.2

it will install high and full coastline file for you

This script downloads both high-resolution and full resolution coast lines
for GMT (Generic Mapping Tools) and installs the resulting CDF files under
/usr/share/gmt/coast for use.

Choose a mirror site (default 1, * marked sites maintain old versions too):

1 ) ftp://ftp.soest.hawaii.edu/gmt
2 ) ftp://ibis.grdl.noaa.gov/pub/gmt
3 ) ftp://ftp.iris.washington.edu/pub/gmt
4 ) ftp://ftp.iag.usp.br/pub/gmt
5 ) ftp://ftp.geologi.uio.no/pub/gmt
6 ) ftp://gd.tuwien.ac.at/pub/gmt
7 ) ftp://ftp.scc.u-tokai.ac.jp/pub/gmt
8 ) ftp://mirror.geosci.usyd.edu.au/pub/gmt

Insert a mirror ID: 3wget --progress=bar -O/tmp/gmt-coast.1AK9ghSN/GSHHS_high.tar.bz2 ftp://ftp.iris.washington.edu/pub/gmt/GSHHS2.0.2_high.tar.bz2
--2011-11-15 18:56:50-- ftp://ftp.iris.washington.edu/pub/gmt/GSHHS2.0.2_high.tar.bz2
=> `/tmp/gmt-coast.1AK9ghSN/GSHHS_high.tar.bz2'
Resolving ftp.iris.washington.edu... 128.95.166.129
Connecting to ftp.iris.washington.edu|128.95.166.129|:21... connected.
Logging in as anonymous ...
Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/gmt ... done.
==> SIZE GSHHS2.0.2_high.tar.bz2 ... 9710481
==> PASV ... done. ==> RETR GSHHS2.0.2_high.tar.bz2 ... done.
Length: 9710481 (9.3M) (unauthoritative)

100%[======================================>] 9,710,481 95.6K/s in 1m 53s

2011-11-15 18:58:47 (83.7 KB/s) - `/tmp/gmt-coast.1AK9ghSN/GSHHS_high.tar.bz2' saved [9710481]

share/coast/binned_GSHHS_h.cdf
share/coast/binned_border_h.cdf
share/coast/binned_river_h.cdf
wget --progress=bar -O/tmp/gmt-coast.1AK9ghSN/GSHHS_full.tar.bz2 ftp://ftp.iris.washington.edu/pub/gmt/GSHHS2.0.2_full.tar.bz2
--2011-11-15 18:58:49-- ftp://ftp.iris.washington.edu/pub/gmt/GSHHS2.0.2_full.tar.bz2
=> `/tmp/gmt-coast.1AK9ghSN/GSHHS_full.tar.bz2'
Resolving ftp.iris.washington.edu... 128.95.166.129
Connecting to ftp.iris.washington.edu|128.95.166.129|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/gmt ... done.
==> SIZE GSHHS2.0.2_full.tar.bz2 ... 29899299
==> PASV ... done. ==> RETR GSHHS2.0.2_full.tar.bz2 ... done.
Length: 29899299 (29M) (unauthoritative)

100%[======================================>] 29,899,299 85.9K/s in 4m 22s

2011-11-15 19:03:15 (112 KB/s) - `/tmp/gmt-coast.1AK9ghSN/GSHHS_full.tar.bz2' saved [29899299]

share/coast/binned_GSHHS_f.cdf
share/coast/binned_border_f.cdf
share/coast/binned_river_f.cdf

Coast lines downloaded and installed under /usr/share/gmt/coast.

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *