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

grdcontour-classic.rst 2.6 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
  1. .. index:: ! grdcontour
  2. .. include:: module_core_purpose.rst_
  3. **********
  4. grdcontour
  5. **********
  6. |grdcontour_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt grdcontour** *grid*
  11. |-J|\ *parameters*
  12. [ |-A|\ [**n**\ *contours*][*labelinfo*] ]
  13. [ |SYN_OPT-B| ]
  14. [ |-C|\ *contours* ]
  15. [ |-D|\ *template* ]
  16. [ |-F|\ [**l**\|\ **r**] ]
  17. [ |-G|\ [**d**\|\ **f**\|\ **n**\|\ **l**\|\ **L**\|\ **x**\|\ **X**]\ *params* ]
  18. [ |-J|\ **z**\|\ **Z**\ *parameters* ] [ |-K| ]
  19. [ |-L|\ *low/high*\|\ **n**\|\ **N**\|\ **P**\|\ **p** ]
  20. [ |-N|\ [*cpt*] ]
  21. [ |-O| ] [ |-P| ]
  22. [ |-Q|\ [*cut*][**+z**] ]
  23. [ |SYN_OPT-Rz| ]
  24. [ |-S|\ *smoothfactor* ]
  25. [ |-T|\ [**h**\|\ **l**][**+a**][**+d**\ *gap*\ [/*length*]][**+l**\ [*labels*]] ]
  26. [ |SYN_OPT-U| ]
  27. [ |SYN_OPT-V| ]
  28. [ |-W|\ [*type*]\ *pen*\ [**+c**\ [**l**\|\ **f**]] ]
  29. [ |SYN_OPT-X| ]
  30. [ |SYN_OPT-Y| ]
  31. [ |-Z|\ [**+s**\ *factor*][**+o**\ *shift*][**+p**] ]
  32. [ |SYN_OPT-bo| ]
  33. [ |SYN_OPT-do| ]
  34. [ |SYN_OPT-e| ]
  35. [ |SYN_OPT-f| ]
  36. [ **-ho**\ [*n*] ]
  37. [ |SYN_OPT-p| ]
  38. [ |SYN_OPT-t| ]
  39. [ |SYN_OPT--| ]
  40. .. include:: grdcontour_common.rst_
  41. .. include:: common_classic.rst_
  42. .. include:: grdcontour_notes.rst_
  43. Examples
  44. --------
  45. .. include:: explain_example.rst_
  46. To contour the file hawaii_grav.nc every 25 mGal on a Mercator map at
  47. 0.5 inch/degree, annotate every 50 mGal (using fontsize = 10p), using 1
  48. degree tickmarks, and draw 30 minute gridlines:
  49. ::
  50. gmt grdcontour hawaii_grav.nc -Jm0.5i -C25 -A50+f10p -B1g30m > hawaii_grav.ps
  51. To do the same map but only draw the 50 and 150 and annotate the 100 contour:
  52. ::
  53. gmt grdcontour hawaii_grav.nc -Jm0.5i -C50.150 -A100,+f10p -B1g30m > hawaii_grav.ps
  54. To contour the file image.nc using the levels in the file cont.txt on a
  55. linear projection at 0.1 cm/x-unit and 50 cm/y-unit, using 20 (x) and
  56. 0.1 (y) tickmarks, smooth the contours a bit, use "RMS Misfit" as
  57. plot-title, use a thick red pen for annotated contours, and a thin,
  58. dashed, blue pen for the rest, and send the output to the default printer:
  59. ::
  60. gmt grdcontour image.nc -Jx0.1c/50.0c -Ccont.txt -S4 -Bx20 -By0.1 \
  61. -B+t"RMS Misfit" -Wathick,red -Wcthinnest,blue,- | lp
  62. The labeling of local highs and lows may plot outside the innermost
  63. contour since only the mean value of the contour coordinates is used to
  64. position the label.
  65. To save the smoothed 100-m contour lines in topo.nc and separate them
  66. into two multisegment files: contours_C.txt for closed and
  67. contours_O.txt for open contours, try
  68. ::
  69. gmt grdcontour topo.nc -C100 -S4 -Dcontours_%c.txt
  70. See Also
  71. --------
  72. :doc:`gmt`, :doc:`gmt.conf`,
  73. :doc:`gmtcolors`,
  74. :doc:`psbasemap`,
  75. :doc:`grdimage`, :doc:`grdview`,
  76. :doc:`pscontour`
Tip!

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

Comments

Loading...