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 bcc3708438
Tagging release 5.0.0
13 years ago
doc
47386e0f87
GMT_linecap.ps was old version with 7200 dpi - now 1200
13 years ago
13 years ago
0e9705ea50
Rev 6969 says that:
13 years ago
src
f1df824435
Fix typo in BD macro call
13 years ago
4233fe2a23
Added test sphinout.sh to check grdmask spherical polygon behavior
13 years ago
dfeff5abef
several main and supplemental tools did not use FORMAT_FLOAT_OUT and COL_SEPARATOR for output
13 years ago
c27d913776
Split off triangle again
13 years ago
13 years ago
13 years ago
7a46f76c1b
*** empty log message ***
14 years ago
7a46f76c1b
*** empty log message ***
14 years ago
c27d913776
Split off triangle again
13 years ago
4baa3c86f2
- New version of install-sh can handle installation of multiple files in one call
18 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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
  1. # Information for installing GMT 5
  2. #
  3. # $Id$
  4. #
  5. # Copyright (c) 1991-2012, P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis
  6. #
  7. # See LICENSE.TXT file for copying and redistribution conditions.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 or any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # Contact info: http://gmt.soest.hawaii.edu
  19. Permission to use, copy, modify, and distribute (with no more than a
  20. reasonable redistribution fee) this software and its documentation
  21. for any purpose is hereby granted, provided that the above copyright
  22. notice appear in all copies, that both that copyright notice and this
  23. permission notice appear in supporting documentation, and that the name
  24. of GMT not be used in advertising or publicity pertaining to distribution
  25. of the software without specific, written prior permission. The GMT
  26. package may be included in a bundled distribution of software for which
  27. a fee may be charged.
  28. The University of Hawaii (UH) and the National Oceanic and Atmospheric
  29. Administration (NOAA) make no representations about the suitability of
  30. this software for any purpose. It is provided "as is" without expressed
  31. or implied warranty. It is provided with no support and without
  32. obligation on the part of UH or NOAA, to assist in its use, correction,
  33. modification, or enhancement.
  34. 0. Introduction
  35. ---------------
  36. If you obtained GMT using the install_gmt.sh script then you have
  37. already completed the installation unless something went wrong.
  38. You do not need to read these instructions unless you plan to
  39. install and make the programs manually.
  40. Visit gmt.soest.hawaii.edu and click DOWNLOAD to do the simple installation.
  41. GMT has been installed successfully under Unix/Linux/OS X on workstations
  42. from Sun, Silicon Graphics, Cray, DEC, HP, Data General, IBM, Apple, NEXT,
  43. as well on any number of PC clones running Linux. It also installs under
  44. WIN32 and in Unix emulators such as Cygwin on PCs and Machten on Macs.
  45. We anticipate few problems if you are installing the package on other platforms.
  46. Should you need to make small modifications, e.g., not use certain
  47. include files, please let us know so that future releases will be even
  48. more portable. This is likely to mean that your platform is not
  49. POSIX compliant. For a non-UNIX solution, see Appendix L for options
  50. and installation details.
  51. Note there are two GMT tar archives available:
  52. 1. gmt-5.0.0b.tar.bz2 : The GMT distribution
  53. 2. gshhs-2.2.0.tar.bz2 : All five resolutions of GSHHS coastline data
  54. The archives are available in bzip2 (*.bz2) format.
  55. If you do not have bzip2 installed you can obtain source or executables
  56. from http://www.bzip.org.
  57. For Windows users there are separate Windows installers available; this
  58. discussion only considers UNIX/Linux/OS X installations.
  59. 1. Install netCDF library
  60. -------------------------
  61. GMT uses several functions in the netCDF library. Copy the file
  62. netcdf.tar.Z from
  63. ftp.unidata.ucar.edu
  64. using anonymous ftp. Then uncompress/tar and follow their
  65. instructions for installation. Make sure you have netcdf version
  66. 3 or higher. See the file VERSION in the netcdf/src directory.
  67. Note that on some systems, particularly Linux or others using the
  68. gcc compiler, you may run into two problems that normally are
  69. taken care of by our install script:
  70. a) Due to a bug(?) in lex, the ncgen/ncgen.c file tries to
  71. include values.h which does not exist. The workaround is
  72. to type "touch ncgen/values.h" from the src directory
  73. before running make.
  74. b) Unless you have an actual Fortran compiler installed you will
  75. need to define the environmental variable DEFINES and set it
  76. to "-Df2cFortran". Under a Bourne shell this becomes
  77. EXPORT DEFINES="-Df2cFortran" while under csh it becomes
  78. setenv DEFINES "-Df2cFortran".
  79. After install, place the line
  80. setenv NETCDFHOME /path_to_netcdf_directory
  81. in your .login file. This path is usually something like
  82. /usr/local/netcdf-3.6.3 depending on where you put it.
  83. The GMT makefiles will use $NETCDFHOME to find the library.
  84. PS! On some newer platforms, in particular MacOS X, you may have
  85. to get a very recent version of netCDF. Version 3.6.3 available on the
  86. Unidata web site or through Fink (unstable) works well.
  87. 1b. OPTIONAL GDAL support
  88. -----------------------
  89. To use the experimental GDAL interface (ability to provide grids
  90. or images to be imported via gdal) you must have the GDAL library
  91. and include files installed and configure with --enable-gdal[=dir].
  92. Either use the dir modifier for the parent dir to include and lib,
  93. or setenv GDAL_INC and GDAL_LIB prior to running configure.
  94. Please report any problems or limitations that you might experience
  95. as this is an optional and experimental feature.
  96. 2. Install support data
  97. -----------------------
  98. At run-time, GMT programs will expect to find its databases
  99. in the "share" directory pointed to by the environment variable
  100. GMT_SHAREDIR. The appropriate default value is set at compilation
  101. time, so users need not set this environment variable, unless they
  102. moved the "share" directory elsewhere.
  103. You may ftp GMT from pub/gmt on any of the following sites. Try
  104. the site that is closest to you to minimize transmission times:
  105. Site FTP address
  106. --------------------------------------------------------------
  107. SOEST, U. of Hawaii gmt.soest.hawaii.edu
  108. Lab for Satellite Altimetry, NOAA ibis.grdl.noaa.gov
  109. IRIS, Washington, US ftp.iris.washington.edu
  110. IAG-USP, U. of Sao Paulo, BRAZIL ftp.iag.usp.br
  111. Dep. Geology, U. in Oslo, NORWAY ftp.geologi.uio.no
  112. ISV, Hokkaido U, Sapporo, JAPAN ftp.eos.hokudai.ac.jp
  113. U of Sydney, Sydney, AUSTRALIA mirror.geosci.usyd.edu.au
  114. GDS, Vienna U. of Technology, AUSTRIA gd.tuwien.ac.at
  115. TENET, Tertiary Education & Research Networks, SOUTH AFRICA gmt.mirror.ac.za
  116. Extract the files and put them in separate directory (need not be
  117. where you eventually want to install GMT).
  118. If your connection is such that you are unable to obtain these files
  119. you may order a CD-ROM from Geoware. See section 15 below for details.
  120. 3. Configure
  121. ------------
  122. You must first create the files src/config.mk, src/GMT,
  123. src/isogmt, src/gmt_notposix.h and src/gmt_version.h
  124. by running the configure script. If you have several C compilers on your
  125. system, or using one that is not called cc or gcc, you should first do a
  126. setenv CC <compilername, including path if unusual>
  127. (this is in csh, other shells have different syntax).
  128. If you want to specify your own CFLAGS setting, use
  129. setenv CFLAGS <your options>
  130. otherwise configure will provide the option known to
  131. work on your system. You should know what you are doing if
  132. you want to override the defaults.
  133. If your standard POSIX Bourne shell is NOT /bin/sh you
  134. may need to do
  135. setenv CONFIG_SHELL <path_to_your_shell>
  136. Finally, if you plan to install the Matlab extensions you
  137. need to
  138. setenv MATLAB <path to Matlab dir>
  139. unless it is /usr/local/matlab [the default].
  140. For building the mex supplement for Octave instead
  141. you select --enable-octave. Optionally specify where
  142. the mex and .m files should be placed with
  143. --mex-enable-mdir and --mex-enable-xdir.
  144. You can disable Matlab/Octave mex compilation by using the
  145. --disable-mex option
  146. One supplement (xgrid) requires X11. You can disable the
  147. compilation of this supplement by using the option
  148. --disable-xgrid
  149. For a summary of configure options, type configure --help.
  150. If you want to override the default directories for the GMT
  151. main directory (current dir) and executable directory (cwd/bin)
  152. you should pass these directories on the configure command line.
  153. --prefix=your-main-GMT-dir Set main GMT directory [cwd]
  154. --bindir=your-bindir Set bin directory [PREFIX/bin]
  155. --libdir=your-libdir Set lib directory [PREFIX/lib]
  156. --includedir=your-includedir Set include directory [PREFIX/include]
  157. --mandir=your-mandir Set man directory [PREFIX/man]
  158. --datadir=your-datadir Set GMT share directory for coastlines [PREFIX/share]
  159. --docdir=your-docdir Set directory for documentation [PREFIX/share]
  160. There are a few GMT-specific options in configure. They are
  161. --enable-netcdf=dir Specify netCDF directory [/usr/local/netcdf]
  162. --enable-matlab=dir Specify Matlab directory [/usr/local/matlab]
  163. --enable-octave Select Octave interface (disables Matlab interface)
  164. --enable-mex-mdir Override where to place *.m functions for Matlab or Octave
  165. --enable-mex-xdir Override where to place *.mex functions for Matlab or Octave
  166. --enable-shared To make shared (dynamic) libraries
  167. --enable-triangle To use J. Shewchuk's fast triangulation
  168. --enable-US To use US (inch) instead of SI (cm) units
  169. --enable-eps Make Encapsulated PostScript by default [Freeform PS]
  170. --enable-flock Use file locking on .gmtcommands4 files
  171. --disable-mex Disable compilation of mex supplement which requires Matlab or Octave
  172. --disable-xgrid Disable compilation of xgrid supplement which requires X11
  173. By default, GMT will be made with static libraries. If you system
  174. supports shared (dynamic) libraries you can select the option
  175. --enable-shared which will try to assemble shared libraries.
  176. By default, GMT will use Dave Watson's Delaunay triangulation
  177. routine. However, a much faster alternative is available from
  178. Jonathan Shewchuk, but his routine is not distributed under the GNU
  179. Public License. If you work for a for-profit organization you should read
  180. Shewchuk's copyright statement (in src/README.TRIANGLE) first. If you can
  181. use his routine you should append --enable-triangle.
  182. At run-time, GMT will initialize all default variables by reading
  183. either the share/gmtdefaults_SI or the share/gmtdefaults_US file.
  184. Both are installed, and the one that is read is given by the file
  185. share/gmt.conf. This file will have either SI or US as the first
  186. two columns on a line. SI is default, use --enable-US to switch.
  187. The default values differ slightly between SI and US, mostly because
  188. it is inconvenient to convert, say, 1" to 2.54 cm; we use 2.5 cm
  189. instead. Although strongly discouraged, if you want to make
  190. permanent changes to some of the defaults you can edit the
  191. gmtdefaults_{SI,US} files directly. A much better approach is to
  192. create a .gmtdefaults4 file in your home directory and edit those
  193. settings since GMT will check for that file before loading system
  194. defaults (actually, it will first look in the current directory,
  195. then the home directory, and then finally in share). See the gmtdefaults
  196. man page for a description of all defaults.
  197. To prevent two GMT processes writing to the same .gmtcommands4 file
  198. simultaneously (thereby corrupting it), GMT can implement the POSIX
  199. advisory file locking scheme and sets and releases locks on these
  200. files. Under GNU/Linux, this does not work when the files reside
  201. in directories mounted with NFS. Since it works with NFS under
  202. other UNIX systems we suspect this is a [temporary] limitation of GNU
  203. NSF. If you want to activate file locking you may enable it by
  204. supplying the --enable-flock flag to configure.
  205. GMT can produce either Freeform PostScript (suitable to be sent to
  206. various printers) or Encapsulated PostScript (suitable to be included
  207. in another document). True PS files will use the setpagedevice
  208. PostScript command to manipulate paper trays and manual feeds
  209. on selected printers. Some PostScript previewers (such as Sun's
  210. old pageview) do not understand these commands and will abort; this
  211. is also true of some PS to raster conversion utilities. On the other
  212. hand, EPS files are intended to be included in another document and
  213. are not allowed to use setpagedevice. To simplify printing, EPS files
  214. are allowed to contain a showpage operator which means EPS files will
  215. print if sent to a printer. The PAPER_MEDIA setting in .gmtdefaults4
  216. can be set to one or the other format (see man gmtdefaults). By
  217. default GMT will produce PS files. If you do not need to take
  218. advantage of paper tray manipulations or expect to make mostly EPS
  219. files you may want to use --enable-eps to make EPS the default. Note
  220. that this can be changed at any time via the PAPER_MEDIA parameter.
  221. In the main GMT directory, type
  222. ./configure [options]
  223. Append any of the options as you see fit. If configure cannot figure
  224. out all the required compiler and linker flags it will give you a message
  225. and you will be asked to edit src/config.mk to set macros manually.
  226. Once this step is completed you may move on to the Makefile section.
  227. If for some reason the configure step fails on your system, you may
  228. have to manually create the files from above from the *.in templates
  229. If you run into this problem, pls let us know so we may improve this
  230. processes further.
  231. [Note: For PCs running WIN?? or DOS you must copy the file
  232. gmt_math_win32.h to gmt_math.h instead; see Appendix L in the docs]
  233. 4. Makefile preparation
  234. -----------------------
  235. If you are one a system without IEEE floating point support (some
  236. Crays we know of) you must add -DNO_IEEE to the CC_OPT flags as well.
  237. It is pretty easy to make netcdf a shared library after the fact. Simply
  238. cd to where libnetcdf.a is and do
  239. $(AR) x libnetcdf.a
  240. $(LD) $(LD_OPT) *.o -o libnetcdf.$(SL)
  241. \rm -f *.o
  242. (substitute the macros with actual values for your system as listed in the
  243. config.mk file). See the linker options for the GMT libraries on how
  244. to store the run-time path to the shared netCDF library in the executables.
  245. 5. Compile/link
  246. ---------------
  247. From the main GMT directory (all make calls herein refers to the main
  248. GMT directory), type
  249. make (or make all)
  250. which will compile/link all the programs. After a successful
  251. compilation you may install the executables in the designated
  252. bin directory with the command
  253. make install-gmt
  254. Place the support data and coastline files in the correct
  255. directory by saying
  256. make install-data
  257. After a successful install you can have *.o files and the local
  258. executables removed by saying
  259. make clean
  260. PS. Should you need to start from scratch again, for instance
  261. to reinstall under another OS from the same directory, you should
  262. first say
  263. make spotless
  264. and run configure again before returning to step 5.
  265. 6. Man pages
  266. ------------
  267. GMT man pages are stored in man/manl. You can either
  268. install the entire set of man pages to the chosen directory with
  269. make install-man
  270. or set the environment variable MANPATH in your .login file to
  271. include the man directory that holds the desired gmt man pages.
  272. 7. Documentation
  273. ____________________
  274. In the directory doc/html you will find html files for online
  275. browsing of GMT documentation (Cookbook) and manual pages.
  276. The Documentation also contains the GMT_Tutorial.pdf
  277. file which is a short course in how to use GMT. It can be
  278. followed individually or in a lab setting by a group of users.
  279. While these are available from the main GMT home page in
  280. Hawaii, users may find it convenient to install these
  281. pages locally for added speed. The subdirectories
  282. contain both HTML and PDF versions of the cookbook, and
  283. HTML versions of the manual pages. All users need to do
  284. is to add a browser bookmark to the top-level file
  285. doc/html/gmt_services.html.
  286. To install all documentation in your chosen directory, type
  287. make install-doc
  288. 8. Set path
  289. -----------
  290. Make sure users set their PATH to include the directory containing
  291. the GMT executables (BINDIR) if this is not a standard directory
  292. like /usr/local/bin. You should now be able to run GMT programs.
  293. 9. GMT supplemental Code
  294. -------------------------
  295. GMT users elsewhere have developed programs that utilize the GMT
  296. libraries and produce PostScript code compatible with the rest of
  297. GMT or simply perform data manipulation. In addition, misc.
  298. code developed by us depend on GMT libraries.
  299. Currently, the supplemental archive include the directories:
  300. dbase - Data extractor for global gridded data sets such
  301. as those on CD-ROM from NGDC.
  302. gshhs - Data extractor for GSHHS shoreline polygons.
  303. imgsrc - Data extractor for Smith/Sandwell altimetry grids.
  304. meca - Plotting of focal mechanisms, velocity arrows,
  305. and error ellipses on maps.
  306. mex - Matlab or Octave mex files for grid file I/O.
  307. mgg - Programs for MGD-77 data in .gmt format.
  308. mgd77 - Programs for handling of native MGD77 files.
  309. misc - psmegaplot, makepattern, gmtdigitize,
  310. gmtstitch, gmtdp, and nc2xy
  311. segyprogs - Plotting SEGY seismic data sets.
  312. sph - Spherical interpolation and triangulation.
  313. spotter - Plate tectonic & kinematics applications.
  314. x2sys - Track intersection (crossover) tools.
  315. x_system - Track intersection (crossover) tools (old version).
  316. xgrid - X11 editor for grid files.
  317. These are installed automatically, except for mex and xgrid which
  318. requires more configuration as they depend on non-GMT libraries.
  319. 10. Example Scripts
  320. -------------------
  321. A complete set of the example scripts used to create all the
  322. example plots, including all necessary data files, are provided by
  323. the installation; you can run all the examples from the
  324. src directory using
  325. make examples
  326. 11. Misc
  327. --------
  328. Before running programs, there are a few things you should do/know:
  329. - Read carefully the documentation for the gmt system. This can be
  330. found as both PDF and HTML files in the doc/pdf|html directories.
  331. The successful operation of gmt-programs depends directly on your
  332. understanding of how gmt "works", its option lists, I/O, and composite
  333. plot mechanisms. Then, before running individual gmt programs, read
  334. the associated man page.
  335. - Do not confuse the GMT-system with the GMT-database that was
  336. initiated at Lamont-Doherty Earth Observatory. These
  337. marine geophysical data files (Gravity, Magnetics, Topography)
  338. are NOT distributed with the GMT-system! [However, programs that
  339. deal with gmt-files can be found in the supplemental tar archive.
  340. 13. A reminder
  341. --------------
  342. If you think it is appropriate, you may consider paying us back
  343. by including our latest EOS article (Wessel, P. and W. H. F. Smith,
  344. New, improved version of the Generic Mapping Tools released, EOS Trans.
  345. AGU, 79, 579, 1998, and our Geophysics article on the gridding algorithm
  346. in surface (Smith, W. H. F. and P. Wessel, Gridding with continuous
  347. curvature splines in tension, Geophysics, 55, 293-305, 1990) in the
  348. reference list of your future publications that will benefit from the
  349. availability of GMT.
  350. 14. Software support
  351. --------------------
  352. You haven't bought anything so you cannot expect full service.
  353. However, if you find a bug in any of the programs, please report
  354. it to us (gmt-bugs@hawaii.edu) rather than trying to fix it yourself
  355. so that we, and through us, other users may benefit from your find.
  356. Make sure you provide us with enough information so that we can recreate
  357. the problem.
  358. Please register via the GMT web page (gmt.soest.hawaii.edu).
  359. Two mailing lists of interest to GMT users are available: gmt-group@lists.hawaii.edu
  360. allows us to notify registered users in the event of bugfixes
  361. and/or new releases. A separate mailing list (gmt-help@lists.hawaii.edu) exists
  362. for GMT users who have questions about GMT installation and usage. If you want
  363. to subscribe to one or both of these mailinglists, send a message to
  364. listproc@hawaii.edu that contains one or both of the commands
  365. subscribe gmt-help <yourname, not email address>
  366. subscribe gmt-group <yourname, not email address>
  367. You may post messages to gmt-help while gmt-group is more of a one-way street
  368. for us to inform users of bug fixes and upgrades. The online registration
  369. also lets you subscribe to the two mailinglists.
  370. 15. Ordering the GMT package on CD/DVD-Rs
  371. -----------------------------------------
  372. Should you or someone you know without net-access need to obtain GMT:
  373. Geoware makes and distributes CD/DVD-Rs with the GMT package and many
  374. useful data sets. For more details and a full description of the data
  375. sets (up to 60 Gb of data!) visit www.geoware-online.com
  376. Good luck!
  377. The GMT Team.
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...