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.rst 2.7 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
  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* [ |-A|\ [**n**\|\ *contours*][*labelinfo*] ]
  12. [ |SYN_OPT-B| ]
  13. [ |-C|\ *contours*\|\ *cpt* ]
  14. [ |-D|\ *template* ]
  15. [ |-F|\ [**l**\|\ **r**] ]
  16. [ |-G|\ [**d**\|\ **f**\|\ **n**\|\ **l**\|\ **L**\|\ **x**\|\ **X**]\ *params* ]
  17. [ |-L|\ *low/high*\|\ **n**\|\ **N**\|\ **P**\|\ **p** ]
  18. [ |-N|\ [*cpt*] ]
  19. [ |-Q|\ [*cut*][**+z**] ]
  20. [ |SYN_OPT-Rz| ]
  21. [ |-S|\ *smoothfactor* ]
  22. [ |-T|\ [**h**\|\ **l**][**+a**][**+d**\ *gap*\ [/*length*]][**+l**\ [*labels*]] ]
  23. [ |SYN_OPT-U| ]
  24. [ |SYN_OPT-V| ]
  25. [ |-W|\ [*type*]\ *pen*\ [**+c**\ [**l**\|\ **f**]] ]
  26. [ |SYN_OPT-X| ]
  27. [ |SYN_OPT-Y| ]
  28. [ |-Z|\ [**+s**\ *factor*][**+o**\ *shift*][**+p**] ]
  29. [ |SYN_OPT-bo| ]
  30. [ |SYN_OPT-do| ]
  31. [ |SYN_OPT-e| ]
  32. [ |SYN_OPT-f| ]
  33. [ **-ho**\ [*n*] ]
  34. [ |SYN_OPT-l| ]
  35. [ |SYN_OPT-p| ]
  36. [ |SYN_OPT-t| ]
  37. [ |SYN_OPT--| ]
  38. .. include:: grdcontour_common.rst_
  39. .. include:: grdcontour_notes.rst_
  40. .. include:: auto_legend_info.rst_
  41. Examples
  42. --------
  43. .. include:: oneliner_info.rst_
  44. To contour the remote file AK_gulf_grav.nc every 25 mGal on a Mercator map at
  45. 0.5 inch/degree, annotate every 50 mGal (using font size = 10p), using 1
  46. degree tick marks, and draw 30 minute gridlines::
  47. gmt grdcontour @AK_gulf_grav.nc -JM16c -C25 -A50+f10p -B -pdf alaska_grav1
  48. To do the same map but only draw the 50 and 150 and annotate the 100 contour::
  49. gmt grdcontour @AK_gulf_grav.nc -JM16c -C50,150 -A100,+f10p -B -pdf alaska_grav2
  50. To contour the Alaska gravity data every 10 mGal with labels every 50 mGal, smooth
  51. the contours a bit, use "Gravity Anomalies" as plot-title, use a thick red pen for
  52. the annotated contours and a thin, dashed, blue pen for the rest, try::
  53. gmt grdcontour @AK_gulf_grav.nc -C10 -A50 -S4 -B -B+t"Gravity Anomalies" -Wathick,red -Wcthinnest,blue,- -pdf alaska_grav3
  54. Same, but this time we want all negative contours to be blue and positive to be red, with
  55. the zero-contour black::
  56. gmt begin alaska_grav4
  57. grdcontour @AK_gulf_grav.nc -C10 -A50 -S4 -B -B+t"Gravity Anomalies" -Ln -Wathick,blue -Wcthinnest,blue,-
  58. grdcontour @AK_gulf_grav.nc -C10 -A50 -S4 -Lp -Wathick,red -Wcthinnest,red,-
  59. grdcontour @AK_gulf_grav.nc -A0, -S4
  60. gmt end show
  61. To save the smoothed 50-mGal contour lines in AK_gulf_grav.nc and separate them
  62. into two multisegment files: contours_C.txt for closed and
  63. contours_O.txt for open contours, try::
  64. gmt grdcontour @AK_gulf_grav.nc -C150 -S4 -DAK_contours_%c.txt
  65. See Also
  66. --------
  67. :doc:`gmt`,
  68. :doc:`gmt.conf`,
  69. :doc:`gmtcolors`,
  70. :doc:`basemap`,
  71. :doc:`grdimage`,
  72. :doc:`grdview`,
  73. :doc:`contour`
Tip!

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

Comments

Loading...