Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

coast.rst 14 KB

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
  1. .. index:: ! coast
  2. .. include:: module_core_purpose.rst_
  3. *****
  4. coast
  5. *****
  6. |coast_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt coast** |-J|\ *parameters*
  11. |SYN_OPT-R|
  12. [ |SYN_OPT-Area| ]
  13. [ |SYN_OPT-B| ]
  14. [ |-C|\ *fill*\ [**+l**\|\ **r**] ]
  15. [ |-D|\ *resolution*\ [**+f**] ]
  16. [ |-E|\ *dcw* ]
  17. [ |-F|\ *box* ]
  18. [ |-G|\ [*fill*] ]
  19. [ |-I|\ *river*\ [/\ *pen*] ]
  20. [ |-J|\ **z**\|\ **Z**\ *parameters* ]
  21. [ |-L|\ *scalebar* ]
  22. [ |-M| ]
  23. [ |-N|\ *border*\ [/*pen*] ]
  24. [ |-Q| ]
  25. [ |-S|\ [*fill*] ]
  26. [ |-T|\ *rose* ]
  27. [ |SYN_OPT-U| ]
  28. [ |SYN_OPT-V| ]
  29. [ |-W|\ [[*level*/]\ *pen*] ]
  30. [ |SYN_OPT-X| ]
  31. [ |SYN_OPT-Y| ]
  32. [ |SYN_OPT-bo| ]
  33. [ |SYN_OPT-d| ]
  34. [ |SYN_OPT-p| ]
  35. [ |SYN_OPT-t| ]
  36. [ |SYN_OPT--| ]
  37. .. module_common_begins
  38. Description
  39. -----------
  40. Plots grayshaded, colored, or textured land-masses [or
  41. water-masses] on maps and [optionally] draws coastlines, rivers, and
  42. political boundaries. Alternatively, it can (1) issue clip
  43. paths that will contain all land or all water areas, or
  44. (2) dump the data to an ASCII table. The data files come
  45. in 5 different resolutions: (**f**)ull, (**h**)igh, (**i**)ntermediate,
  46. (**l**)ow, and (**c**)rude. The full resolution files amount to more
  47. than 55 Mb of data and provide great detail; for maps of larger
  48. geographical extent it is more economical to use one of the other
  49. resolutions. If the user selects to paint the land-areas and does not
  50. specify fill of water-areas then the latter will be transparent (i.e.,
  51. earlier graphics drawn in those areas will not be overwritten).
  52. Likewise, if the water-areas are painted and no land fill is set then
  53. the land-areas will be transparent. A map projection must be supplied.
  54. Required Arguments
  55. ------------------
  56. .. |Add_-J| replace:: |Add_-J_links|
  57. .. include:: explain_-J.rst_
  58. :start-after: **Syntax**
  59. :end-before: **Description**
  60. .. _-R:
  61. .. |Add_-Rgeo| replace:: Not required when |-E| is used.
  62. .. include:: explain_-Rgeo.rst_
  63. .. |Add_-Rz| unicode:: 0x20 .. just an invisible code
  64. .. include:: explain_-Rz.rst_
  65. Optional Arguments
  66. ------------------
  67. .. _-A:
  68. .. |Add_-A| unicode:: 0x20 .. just an invisible code
  69. .. include:: explain_-A.rst_
  70. .. |Add_-B| replace:: |Add_-B_links|
  71. .. include:: explain_-B.rst_
  72. :start-after: **Syntax**
  73. :end-before: **Description**
  74. .. _-C:
  75. **-C**\ *fill*\ [**+l**\|\ **+r**] :ref:`(more ...) <-Gfill_attrib>`
  76. Set the shade, color, or pattern for lakes and river-lakes [Default
  77. is the fill chosen for "wet" areas (**-S**)]. Optionally, specify
  78. separate fills by appending **+l** for lakes or **+r** for
  79. river-lakes, repeating the **-C** option as needed.
  80. .. _-D:
  81. **-D**\ *resolution*\ [**+f**]
  82. Select the resolution of the data set to use ((**f**)ull,
  83. (**h**)igh, (**i**)ntermediate, (**l**)ow, and (**c**)rude). The
  84. resolution drops off by 80% between data sets.
  85. Append **+f** to automatically select a lower resolution should the one
  86. requested not be available [abort if not found].
  87. Alternatively, choose (**a**)uto to automatically select the best
  88. resolution given the chosen map scale. [Default is **l** in classic mode
  89. and **a** in modern mode].
  90. .. _-E:
  91. **-E**\ *code1,code2,...*\ [**+l**\|\ **L**][**+c**\|\ **C**][**+g**\ *fill*][**+p**\ *pen*][**+z**]
  92. Select painting, clipping or dumping country polygons from the Digital Chart of the World.
  93. This is another dataset independent of GSHHG and hence the **-A** and **-D** options do not apply.
  94. Append one or more comma-separated countries using the
  95. `2-character ISO 3166-1 alpha-2 convention <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2>`_.
  96. To select a state of a country (if available), append .state, e.g, US.TX for Texas. To specify a
  97. whole continent, prepend = to any of the continent codes AF (Africa),
  98. AN (Antarctica), AS (Asia), EU (Europe), OC (Oceania),
  99. NA (North America), or SA (South America). Append **+l** to
  100. just list the countries and their codes [no data extraction or plotting takes place].
  101. Use **+L** to see states/territories for Argentina, Australia, Brazil, Canada, China, India, Russia and the US.
  102. Finally, you can append **+l**\|\ **+L** to **-E**\ =\ *continent* or **-E**\ *code* to only list
  103. countries in that continent or country; repeat if more than one continent or country is requested.
  104. To set up clip paths based on your selection, append **+c** or **+C** for inside or outside (area between selection
  105. and the map boundary) clipping, respectively. To plot instead,
  106. append **+p**\ *pen* to draw polygon outlines [no outline] and
  107. **+g**\ *fill* to fill them [no fill]. One of **+c**\|\ **C**\|\ **g**\|\ **p** must be
  108. specified unless **-M** is in effect, in which case only one **-E** option can be given;
  109. append **+z** to place the country code in the segment headers via **-Z**\ *code* settings.
  110. Otherwise, you may repeat **-E** to give different groups of items their own pen/fill settings.
  111. If neither **-J** nor **-M** are set then we just print the **-R**\ *wesn* string.
  112. .. _-F:
  113. **-F**\ [**l**\|\ **t**][**+c**\ *clearances*][**+g**\ *fill*][**+i**\ [[*gap*/]\ *pen*]][**+p**\ [*pen*]]\
  114. [**+r**\ [*radius*]][**+s**\ [[*dx*/*dy*/][*shade*]]]
  115. Without further options, draws a rectangular border around any map scale (|-L|) or map rose (|-T|) using
  116. :term:`MAP_FRAME_PEN`. Used in combination with |-L| or |-T|. Append **l** for map scale or **t** for map rose to
  117. specify which plot embellisment the |-F| parameters should be applied to [default uses the same panel parameters for
  118. all selected map embellishments]. The following modifiers can be appended to |-F|, with additional explanation and
  119. examples provided in the :ref:`Background-panel` cookbook section:
  120. .. include:: explain_-F_box.rst_
  121. .. _-G:
  122. **-G**\ [*fill*] :ref:`(more ...) <-Gfill_attrib>`
  123. Select filling or clipping of "dry" areas. Append the shade, color,
  124. or pattern; or give no argument for clipping [Default is no fill].
  125. .. _-I:
  126. **-I**\ *river*\ [/*pen*]
  127. Draw rivers. Specify the type of rivers and [optionally] append pen
  128. attributes [Default pen: width = default, color = black, style =
  129. solid].
  130. Choose from the list of river types below; repeat option **-I** as
  131. often as necessary.
  132. - 0 = Double-lined rivers (river-lakes)
  133. - 1 = Permanent major rivers
  134. - 2 = Additional major rivers
  135. - 3 = Additional rivers
  136. - 4 = Minor rivers
  137. - 5 = Intermittent rivers - major
  138. - 6 = Intermittent rivers - additional
  139. - 7 = Intermittent rivers - minor
  140. - 8 = Major canals
  141. - 9 = Minor canals
  142. - 10 = Irrigation canals
  143. You can also choose from several preconfigured river groups:
  144. - a = All rivers and canals (0-10)
  145. - A = All rivers and canals except river-lakes (1-10)
  146. - r = All permanent rivers (0-4)
  147. - R = All permanent rivers except river-lakes (1-4)
  148. - i = All intermittent rivers (5-7)
  149. - c = All canals (8-10)
  150. .. _-L:
  151. .. include:: explain_-L_scale.rst_
  152. .. _-M:
  153. **-M**
  154. Dump a single multisegment ASCII (or binary, see
  155. **-bo**) file to standard output. No plotting
  156. occurs. Specify one of **-E**, **-I**, **-N** or **-W**.
  157. **Note**: If **-M** is used with **-E** then **-R** or the **+r** modifier
  158. to **-E** are not required as we automatically determine the region
  159. given the selected geographic entities. If using **-W** and you want
  160. just certain levels (1-4) then use the full syntax **-W**\ *level*/\ *pen*
  161. and repeat for each level (pen is not used but required to parse the level correctly).
  162. .. _-N:
  163. **-N**\ *border*\ [/*pen*]
  164. Draw political boundaries. Specify the type of boundary and
  165. [optionally] append pen attributes [Default pen: width = default,
  166. color = black, style = solid].
  167. Choose from the list of boundaries below. Repeat option **-N** as
  168. often as necessary.
  169. - 1 = National boundaries
  170. - 2 = State boundaries within the Americas
  171. - 3 = Marine boundaries
  172. - a = All boundaries (1-3)
  173. .. _-Q:
  174. **-Q**
  175. Mark end of existing clip path. No projection information is needed.
  176. Also supply **-X** and **-Y** settings if you have moved since the clip started.
  177. .. _-S:
  178. **-S**\ [*fill*] :ref:`(more ...) <-Gfill_attrib>`
  179. Select filling or clipping of "wet" areas. Append the shade, color,
  180. or pattern; or give no argument for clipping [Default is no fill].
  181. .. _-T:
  182. .. include:: explain_-T_rose.rst_
  183. .. |Add_-U| replace:: |Add_-U_links|
  184. .. include:: explain_-U.rst_
  185. :start-after: **Syntax**
  186. :end-before: **Description**
  187. .. |Add_-V| replace:: |Add_-V_links|
  188. .. include:: explain_-V.rst_
  189. :start-after: **Syntax**
  190. :end-before: **Description**
  191. .. _-W:
  192. **-W**\ [[*level*/]\ *pen*] :ref:`(more ...) <set-pens>`
  193. Draw shorelines [Default is no shorelines]. Append pen attributes
  194. [Defaults: width = default, color = black, style = solid] which
  195. apply to all four levels. To set the pen for each level differently,
  196. prepend *level*/, where *level* is 1-4 and represent coastline,
  197. lakeshore, island-in-lake shore, and lake-in-island-in-lake shore.
  198. Repeat **-W** as needed. When specific level pens are set, those not
  199. listed will not be drawn [Default draws all levels; but see **-A**].
  200. .. |Add_-XY| replace:: |Add_-XY_links|
  201. .. include:: explain_-XY.rst_
  202. :start-after: **Syntax**
  203. :end-before: **Description**
  204. .. |Add_-bo| unicode:: 0x20 .. just an invisible code
  205. .. include:: explain_-bo.rst_
  206. .. |Add_-d| unicode:: 0x20 .. just an invisible code
  207. .. include:: explain_-d.rst_
  208. .. |Add_perspective| unicode:: 0x20 .. just an invisible code
  209. .. include:: explain_perspective.rst_
  210. .. include:: explain_-t.rst_
  211. .. include:: explain_help.rst_
  212. .. module_common_ends
  213. Examples
  214. --------
  215. .. include:: oneliner_info.rst_
  216. To plot a green Africa with white outline on blue background, with
  217. permanent major rivers in thick blue pen, additional major rivers in
  218. thin blue pen, and national borders as dashed lines on a Mercator map at
  219. scale 0.1 inch/degree, use::
  220. gmt coast -R-30/30/-40/40 -Jm0.1i -B5 -I1/1p,blue -N1/0.25p,- \
  221. -I2/0.25p,blue -W0.25p,white -Ggreen -Sblue -pdf africa
  222. To plot Iceland using the lava pattern (# 28) at 100 dots per inch, on a
  223. Mercator map at scale 1 cm/degree, run::
  224. gmt coast -RIS+r1 -Jm1c -B -Wthin -Gp28+r100 -pdf iceland
  225. To initiate a clip path for Africa so that the subsequent colorimage of
  226. gridded topography is only seen over land, using a Mercator map at scale
  227. 0.1 inch/degree, use::
  228. gmt begin
  229. gmt coast -R-30/30/-40/40 -Jm0.1i -B -G
  230. gmt grdimage @earth_relief_05m
  231. gmt coast -Q
  232. gmt end show
  233. To plot Great Britain, Italy, and France in blue with a red outline and
  234. Spain, Portugal and Greece in yellow (no outline), and pick up the plot
  235. domain from the extents of these countries, use::
  236. gmt coast -JM6i -Baf -EGB,IT,FR+gblue+p0.25p,red -EES,PT,GR+gyellow -pdf map
  237. To extract a high-resolution coastline data table for Iceland to be used
  238. in your analysis, try::
  239. gmt coast -RIS -Dh -W -M > iceland.txt
  240. To lay down a clip path around France that will clip your later plotting
  241. until you end the clipping with clip -C, try::
  242. gmt coast -R-10/10/40/52 -JM15c -E+c
  243. **coast** will first look for coastline files in directory
  244. **$GMT_SHAREDIR**/coast If the desired file is not found, it will look
  245. for the file **$GMT_SHAREDIR**/coastline.conf. This file may contain
  246. any number of records that each holds the full pathname of an
  247. alternative directory. Comment lines (#) and blank lines are allowed.
  248. The desired file is then sought for in the alternate directories.
  249. .. include:: explain_gshhg.rst_
  250. .. module_note_begins
  251. Bugs
  252. ----
  253. The options to fill (**-C** **-G** **-S**) may not always work if the
  254. Azimuthal equidistant projection is chosen (**-Je**\|\ **E**). If the
  255. antipole of the projection is in the oceans it will most likely work. If
  256. not, try to avoid using projection center coordinates that are even
  257. multiples of the coastline bin size (1, 2, 5, 10, and 20 degrees for
  258. **f**, **h**, **i**, **l**, **c**, respectively). This projection is not
  259. supported for clipping.
  260. The political borders are for the most part 1970s-style but have been
  261. updated to reflect more recent border rearrangements in Europe and
  262. elsewhere. Let us know if you find something out of date.
  263. The full-resolution coastlines are also from a digitizing effort in the
  264. 1970-80s and it is difficult to assess the accuracy. Users who zoom in
  265. close enough may find that the GSHHG coastline is not matching other
  266. data, e.g., satellite images, more recent coastline data, etc. We are
  267. aware of such mismatches but cannot undertake band-aid solutions each
  268. time this occurs.
  269. Some users will not be satisfied with what they find for
  270. the Antarctic shoreline. In Antarctica, the boundary between ice and
  271. ocean varies seasonally and inter-annually. There are some areas of
  272. permanent shelf ice. In addition to these time-varying ice-ocean
  273. boundaries, there are also shelf ice grounding lines where ice goes from
  274. floating on the sea to sitting on land, and lines delimiting areas of
  275. rock outcrop. For consistency's sake, we have used the World Vector
  276. Shoreline throughout the world, as described in :doc:`/datasets/gshhg`.
  277. Users who need specific boundaries in Antarctica
  278. should get the Antarctic Digital Database, prepared by the British
  279. Antarctic Survey, Scott Polar Research Institute, World Conservation
  280. Monitoring Centre, under the auspices of the Scientific Committee on
  281. Antarctic Research. This data base contains various kinds of limiting
  282. lines for Antarctica and is available on CD-ROM. It is published by the
  283. Scientific Committee on Antarctic Research, Scott Polar Research
  284. Institute, Lensfield Road, Cambridge CB2 1ER, United Kingdom.
  285. .. module_note_ends
  286. See Also
  287. --------
  288. :doc:`gmt`, :doc:`gmt.conf`,
  289. :doc:`gmtcolors`,
  290. :doc:`grdlandmask`,
  291. :doc:`basemap`
Tip!

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

Comments

Loading...