Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  git github
Florian Wobbe 455cb36921
Tagging release 5.0.1
11 years ago
adfc9500fa
CMake release changes
13 years ago
f0fed825a1
Fixed float comparison functions
13 years ago
doc
ced0bd5922
Make test functions more generic and allow relative dirs; fixed some test scripts
13 years ago
a713dc5407
Revert last change
13 years ago
src
fda4c8f917
circuit.ras and vader.ras in GMT_SOURCE_DIR/share/psldemo
13 years ago
d44bde4fe6
More smart updates to tests
13 years ago
ae113ada05
Change minimum required CMake version to 2.8.6
13 years ago
d9c8e97085
Update license information
13 years ago
d9c8e97085
Update license information
13 years ago
bd9e5b9aa2
No longer copy test directory for testing
13 years ago
789410bb5b
Install extra license files in doc/copying
13 years ago
fa612c6bd9
Portability fixes
13 years ago
2e28d97df0
New test case for grdimage + some typos
13 years ago
f0fed825a1
Fixed float comparison functions
13 years ago
19638b0422
Implement guessing of GMT_SHAREDIR based on runpath
13 years ago
617c92caff
Add missing file getdate.bat
13 years ago
Storage Buckets

README

You have to be logged in to leave a comment. Sign In
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
  1. $Id$
  2. == Information for installing GMT 5 ==
  3. Note: The build system has recently been switched to CMake which is a
  4. cross-platform system for managing the build process. If you are familiar
  5. with the old GNU Build Tools (automake, autoconf, and configure) you can
  6. probably skip over to the CMake quick start guide in README.CMake.
  7. Introduction
  8. ------------
  9. You do not need to read these instructions unless you plan to build and
  10. install the programs manually.
  11. GMT has been installed successfully under Unix/Linux/OS X on workstations
  12. from Sun, Silicon Graphics, Cray, DEC, HP, Data General, IBM, Apple, NEXT,
  13. as well on any number of PC clones running Linux. It also installs under
  14. WIN32 and in Unix emulators such as Cygwin on PCs and Machten on Macs.
  15. We anticipate few problems if you are installing the package on other platforms.
  16. Should you need to make small modifications, e.g., not use certain
  17. include files, please let us know so that future releases will be even
  18. more portable. This is likely to mean that your platform is not
  19. POSIX compliant. For a non-UNIX solution, see Appendix L for options
  20. and installation details.
  21. Note there are two GMT tar archives available:
  22. 1. gmt-5.0.0b.tar.bz2: The GMT distribution
  23. 2. gshhs-2.2.0.tar.bz2: All five resolutions of GSHHS coastline data
  24. The archives are available in bzip2 (*.bz2) format.
  25. If you do not have bzip2 installed you can obtain source or executables
  26. from http://www.bzip.org.
  27. For Windows users there are separate Windows installers available; this
  28. discussion only considers UNIX/Linux/OS X installations. Windows users who
  29. which to build GMT from the sources refer to README.WIN32.
  30. CMake
  31. -----
  32. Install CMake (>=2.8.5) from http://www.cmake.org/cmake/resources/software.html
  33. Install netCDF library
  34. ----------------------
  35. Get and install netCDF from http://www.unidata.ucar.edu/downloads/netcdf/.
  36. You need at least version 3.6.3 but we recommend installing version 4.
  37. For all major Linux distributions there are prepackaged development binaries
  38. available. netCDF is also available on MacOSX trough the macports and fink
  39. package managers.
  40. GDAL (optional)
  41. ---------------
  42. To use the GDAL interface (ability to provide grids or images to be imported
  43. via gdal) you must have the GDAL library and include files installed. Please
  44. report any problems or limitations that you might experience as this is an
  45. optional and experimental feature.
  46. Like netCDF, GDAL is available through your favorite package manager on many
  47. *NIX systems.
  48. Install support data
  49. --------------------
  50. You can obtain GMT from gmt.soest.hawaii.edu. Alternatively you may ftp GMT
  51. from pub/gmt on any of the following sites. Try the site that is closest to
  52. you to minimize transmission times:
  53. Site FTP address
  54. --------------------------------------------------------------
  55. SOEST, U. of Hawaii gmt.soest.hawaii.edu
  56. Lab for Satellite Altimetry, NOAA ibis.grdl.noaa.gov
  57. IRIS, Washington, US ftp.iris.washington.edu
  58. IAG-USP, U. of Sao Paulo, BRAZIL ftp.iag.usp.br
  59. Dep. Geology, U. in Oslo, NORWAY ftp.geologi.uio.no
  60. ISV, Hokkaido U, Sapporo, JAPAN ftp.eos.hokudai.ac.jp
  61. U of Sydney, Sydney, AUSTRALIA mirror.geosci.usyd.edu.au
  62. GDS, Vienna U. of Technology, AUSTRIA gd.tuwien.ac.at
  63. TENET, Tertiary Education & Research Networks, SOUTH AFRICA
  64. gmt.mirror.ac.za
  65. The development sources are available from the subversion repository at
  66. svn://gmtserver.soest.hawaii.edu/gmt5/trunk
  67. Extract the files and put them in a separate directory (need not be
  68. where you eventually want to install GMT).
  69. Configuring
  70. -----------
  71. GMT can be build on any platform supported by CMake. CMake is a cross-platform,
  72. open-source system for managing the build process. Refer to the documentation
  73. at http://www.cmake.org/ for further details. In the source tree copy
  74. cmake/ConfigUserTemplate.cmake to cmake/ConfigUser.cmake and edit the file
  75. according to your demands.
  76. By default, GMT will use Dave Watson's Delaunay triangulation routine.
  77. However, a much faster alternative is available from Jonathan Shewchuk, but
  78. his routine is not distributed under the GNU Public License. If you work for
  79. a for-profit organization you should read Shewchuk's copyright statement (in
  80. src/triangle.c) first. If you agree with the license terms you can enable
  81. Shewchuk's triangulation routine cmake/ConfigUser.cmake.
  82. At run-time, GMT will initialize all default variables by reading
  83. either the share/gmtdefaults_SI or the share/gmtdefaults_US file.
  84. Both are installed, and the one that is read is given by the file
  85. share/gmt.conf. This file will have either SI or US as the first
  86. two columns on a line. SI is default. You can configure the default
  87. at build time in cmake/ConfigUser.cmake.
  88. The default values differ slightly between SI and US, mostly because
  89. it is inconvenient to convert, say, 1" to 2.54 cm; we use 2.5 cm
  90. instead. Although strongly discouraged, if you want to make
  91. permanent changes to some of the defaults you can edit the
  92. gmtdefaults_{SI,US} files directly. A much better approach is to
  93. create a .gmtdefaults4 file in your home directory and edit those
  94. settings since GMT will check for that file before loading system
  95. defaults (actually, it will first look in the current directory,
  96. then the home directory, and then finally in share). See the gmtdefaults
  97. man page for a description of all defaults.
  98. To prevent two GMT processes writing to the same .gmtcommands4 file
  99. simultaneously (thereby corrupting it), GMT can implement the POSIX
  100. advisory file locking scheme and sets and releases locks on these
  101. files. Under GNU/Linux, this does not work when the files reside
  102. in directories mounted with NFS. Since it works with NFS under
  103. other UNIX systems we suspect this is a [temporary] limitation of GNU
  104. NSF. If you want to activate file locking you may enable it in
  105. cmake/ConfigUser.cmake.
  106. GMT can produce either Freeform PostScript (suitable to be sent to
  107. various printers) or Encapsulated PostScript (suitable to be included
  108. in another document). True PS files will use the setpagedevice
  109. PostScript command to manipulate paper trays and manual feeds
  110. on selected printers. Some PostScript previewers (such as Sun's
  111. old pageview) do not understand these commands and will abort; this
  112. is also true of some PS to raster conversion utilities. On the other
  113. hand, EPS files are intended to be included in another document and
  114. are not allowed to use setpagedevice. To simplify printing, EPS files
  115. are allowed to contain a showpage operator which means EPS files will
  116. print if sent to a printer. The PAPER_MEDIA setting in .gmtdefaults4
  117. can be set to one or the other format (see man gmtdefaults). By
  118. default GMT will produce PS files.
  119. We provide two install modes via CMake: You have the choice between a
  120. monolithic installation (GMT_INSTALL_MONOLITHIC=ON) where everything goes
  121. into a common subdirectory, or a distribution-like installation
  122. (PREFIX/bin/gmt-VERSION, PREFIX/lib/gmt-VERSION/, PREFIX/share/gmt-VERSION/,
  123. PREFIX/share/doc/gmt-VERSION/).
  124. The top-level installation directory is configured with the variable
  125. CMAKE_INSTALL_PREFIX.
  126. Now that you made your configuration choices it is time for invoking CMake.
  127. In the source tree, create a subdirectory where the build files will be
  128. generated, e.g., 'mkdir build'.
  129. In the build subdirectory, type
  130. cmake [options] ..
  131. Append any of the options explained above as you see fit. If CMake cannot
  132. figure out all the dependent libraries or required compiler and linker flags
  133. it will give you a message and you will be asked to edit
  134. cmake/ConfigUser.cmake.
  135. Build GMT
  136. ---------
  137. In the build directory, type
  138. make -jx
  139. make -jx manpages_all
  140. which will compile all the programs and create the manual pages. You can
  141. define the number of jobs to run simultaneously by make with the -jx option,
  142. where x is typically the number of CPUs. After a successful compilation you
  143. may install the executables in the designated bin directory with the command
  144. make -jx install
  145. After a successful install you can have the object files and the local
  146. executables removed by saying
  147. make clean
  148. or just remove the entire build directory.
  149. Documentation
  150. _____________
  151. The documentation is available online at http://gmt.soest.hawaii.edu/
  152. or as platform independent package that you can install along with GMT.
  153. The development sources from subversion does not contain the precompiled
  154. documentation in PDF format. The PDFs have to be created from source with
  155. LaTeX (e.g., TeX Live).
  156. The GMT documentation includes HTML files for online browsing, user guide,
  157. cookbook, and manual pages. The Documentation also contains the
  158. GMT_Tutorial.pdf file which is a short course in how to use GMT. It can be
  159. followed individually or in a lab setting by a group of users.
  160. While these are available from the main GMT home page in Hawaii, users may
  161. find it convenient to install these pages locally for added speed. The
  162. subdirectories contain both HTML and PDF versions of the cookbook, and HTML
  163. versions of the manual pages. All users need to do is to add a browser
  164. bookmark to the top-level file doc/html/gmt_services.html. To install all
  165. documentation in your chosen directory, type
  166. make gmt_pdf_manpages
  167. make gmt_doc
  168. make gmt_doc_shrink
  169. make install
  170. Set path
  171. --------
  172. Make sure users set their PATH to include the directory containing
  173. the GMT executables (BINDIR) if this is not a standard directory
  174. like /usr/local/bin. You should now be able to run GMT programs.
  175. GMT supplemental Code
  176. ---------------------
  177. GMT users elsewhere have developed programs that utilize the GMT
  178. libraries and produce PostScript code compatible with the rest of
  179. GMT or simply perform data manipulation. In addition, misc.
  180. code developed by us depend on GMT libraries.
  181. Currently, the supplemental archive include the directories:
  182. dbase - Data extractor for global gridded data sets such
  183. as those on CD-ROM from NGDC.
  184. gshhs - Data extractor for GSHHS shoreline polygons.
  185. imgsrc - Data extractor for Smith/Sandwell altimetry grids.
  186. meca - Plotting of focal mechanisms, velocity arrows,
  187. and error ellipses on maps.
  188. mex - Matlab or Octave mex files for grid file I/O.
  189. mgg - Programs for MGD-77 data in .gmt format.
  190. mgd77 - Programs for handling of native MGD77 files.
  191. misc - psmegaplot, makepattern, gmtdigitize,
  192. gmtstitch, gmtdp, and nc2xy
  193. segyprogs - Plotting SEGY seismic data sets.
  194. sph - Spherical interpolation and triangulation.
  195. spotter - Plate tectonic & kinematics applications.
  196. x2sys - Track intersection (crossover) tools.
  197. x_system - Track intersection (crossover) tools (old version).
  198. xgrid - X11 editor for grid files.
  199. These are installed automatically, except for mex and xgrid which
  200. requires more configuration as they depend on non-GMT libraries.
  201. Example Scripts
  202. ---------------
  203. A complete set of the example scripts used to create all the
  204. example plots, including all necessary data files, are provided by
  205. the installation; you can run all the examples from the
  206. src directory using CTest (enable in cmake/ConfigUser.cmake)
  207. make check
  208. Misc
  209. ----
  210. Before running programs, there are a few things you should do/know:
  211. - Read carefully the documentation for the gmt system. This can be
  212. found as both PDF and HTML files in the doc/pdf|html directories.
  213. The successful operation of gmt-programs depends directly on your
  214. understanding of how gmt "works", its option lists, I/O, and composite
  215. plot mechanisms. Then, before running individual gmt programs, read
  216. the associated man page.
  217. - Do not confuse the GMT-system with the GMT-database that was
  218. initiated at Lamont-Doherty Earth Observatory. These
  219. marine geophysical data files (Gravity, Magnetics, Topography)
  220. are NOT distributed with the GMT-system! [However, programs that
  221. deal with gmt-files can be found in the supplemental tar archive.
  222. A reminder
  223. ----------
  224. If you think it is appropriate, you may consider paying us back
  225. by including our latest EOS article (Wessel, P. and W. H. F. Smith,
  226. New, improved version of the Generic Mapping Tools released, EOS Trans.
  227. AGU, 79, 579, 1998, and our Geophysics article on the gridding algorithm
  228. in surface (Smith, W. H. F. and P. Wessel, Gridding with continuous
  229. curvature splines in tension, Geophysics, 55, 293-305, 1990) in the
  230. reference list of your future publications that will benefit from the
  231. availability of GMT.
  232. Software support
  233. ----------------
  234. You haven't bought anything so you cannot expect full service.
  235. However, if you find a bug in any of the programs, please report
  236. it to us (gmtrac.soest.hawaii.edu) rather than trying to fix it yourself
  237. so that we, and through us, other users may benefit from your find.
  238. Make sure you provide us with enough information so that we can recreate
  239. the problem.
  240. Please register via the GMT web page (gmt.soest.hawaii.edu).
  241. Two mailing lists of interest to GMT users are available: gmt-group@lists.hawaii.edu
  242. allows us to notify registered users in the event of bugfixes
  243. and/or new releases. A separate mailing list (gmt-help@lists.hawaii.edu) exists
  244. for GMT users who have questions about GMT installation and usage. If you want
  245. to subscribe to one or both of these mailinglists, send a message to
  246. listproc@hawaii.edu that contains one or both of the commands
  247. subscribe gmt-help <yourname, not email address>
  248. subscribe gmt-group <yourname, not email address>
  249. You may post messages to gmt-help while gmt-group is more of a one-way street
  250. for us to inform users of bug fixes and upgrades. The online registration
  251. also lets you subscribe to the two mailinglists.
  252. Ordering the GMT package on CD/DVD-Rs
  253. -------------------------------------
  254. Should you or someone you know without net-access need to obtain GMT:
  255. Geoware makes and distributes CD/DVD-Rs with the GMT package and many
  256. useful data sets. For more details and a full description of the data
  257. sets (up to 60 Gb of data!) visit www.geoware-online.com
  258. Good luck!
  259. The GMT Team.
  260. vim: tw=78 et ts=2 sts=2 sw=2 autoindent smartindent
Tip!

Press p or to see the previous file or, n or to see the next file

About

A mirror of my fork of the GMT repository

Collaborators 1

Comments

Loading...