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

gmtget.rst 3.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
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
  1. .. index:: ! gmtget
  2. .. include:: module_core_purpose.rst_
  3. ******
  4. gmtget
  5. ******
  6. |gmtget_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt get**
  11. [ *PARAMETER1* *PARAMETER2* *PARAMETER3* ... ]
  12. [ |-D|\ *selection* ]
  13. [ |-G|\ *defaultsfile* ]
  14. [ |-I|\ *inc*\ [**m**\|\ **s**] ]
  15. [ |-L| ]
  16. [ |-N| ]
  17. [ |-Q| ]
  18. [ |SYN_OPT-V| ]
  19. |No-spaces|
  20. Description
  21. -----------
  22. Normally, **gmt get** will list the value of one or more specified GMT default parameters.
  23. Alternatively (with **-D**), it will instead download selected sets remote data from the
  24. current GMT data server.
  25. Optional Arguments
  26. ------------------
  27. PARAMETER
  28. Provide one or several parameters of interest. The current value of
  29. those parameters will be written to *stdout*. For a complete listing
  30. of available parameters and their meaning, see the :doc:`gmt.conf` man page.
  31. .. _-D:
  32. **-D**\ *selection*
  33. Download one or more directories of data from the GMT server. Here,
  34. *selection* may be *cache* (get the entire cache directory with the files
  35. used in the GMT examples and tests), *data* (the entire data directory
  36. on the server), or *all* (both *cache* and *data*). You can further limit
  37. the *data* download by appending =\ *planet* or =\ *datasetlist*. Consult
  38. the :doc:`/datasets` documentation to see what data sets are currently
  39. available from the server as this may change over time.
  40. .. _-G:
  41. **-G**\ *defaultsfile*
  42. Name of specific :doc:`gmt.conf` file to read [Default looks first in
  43. current directory, then in your home directory, then in ~/.gmt and
  44. finally in the system defaults].
  45. .. _-I:
  46. **-I**\ *inc*\ [**m**\|\ **s**]
  47. In conjunction with **-D**, limit the download of grids to those with grid
  48. spacing equal to or larger than *inc* [no limit].
  49. .. _-L:
  50. **-L**
  51. Return the values of the parameters on separate lines [Default
  52. returns all selected parameter values on one line separated by
  53. spaces].
  54. .. _-N:
  55. **-N**
  56. Used in conjunction with **-D** and disables the otherwise automatic conversion
  57. of downloaded compressed JP2000 tiles to locally (compressed) netCDF grids.
  58. This speeds up the total data request and defers the conversion to when the
  59. tile is requested by a module.
  60. .. _-Q:
  61. **-Q**
  62. Can be used in conjunction with **-D** (and **-I**) to provide a listing of
  63. available datasets (no downloading takes place). The output is one record per
  64. dataset giving the information as *planet group dataset size nitems remark*. For datasets
  65. that are tiled, the *size* is set to N/A (tile sizes vary but are usually just
  66. a few Mb each) and *nitems* indicates the number of tiles.
  67. .. _-V:
  68. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  69. .. include:: explain_-V.rst_
  70. .. include:: explain_help.rst_
  71. Examples
  72. --------
  73. To download all the Earth gridded products, leaving tiles as JP2000 files, try::
  74. gmt get -Ddata=earth -N
  75. To download just the Earth masks and day image data, with a cutoff at 1x1 arc minutes, try::
  76. gmt get -Ddata=earth_mask,earth_day -I1m
  77. To download the entire cache directory contents, try::
  78. gmt get -Dcache
  79. To list the value of the parameter :term:`PS_COMMENTS`::
  80. gmt get PS_COMMENTS
  81. To get both the values of the parameter
  82. :term:`MAP_GRID_CROSS_SIZE_PRIMARY` and :term:`MAP_GRID_CROSS_SIZE_SECONDARY` on one line, try::
  83. gmt get MAP_GRID_CROSS_SIZE_PRIMARY MAP_GRID_CROSS_SIZE_SECONDARY
  84. Downloading Data
  85. ----------------
  86. Be aware that the GMT data server hosts many tens of Gb of data sets. The **-D** option
  87. may require considerable free space on your local computer. Data and cache directories
  88. may be removed by using the :doc:`clear` module.
  89. See Also
  90. --------
  91. :doc:`clear`,
  92. :doc:`gmt`,
  93. :doc:`gmt.conf`,
  94. :doc:`gmtdefaults`,
  95. :doc:`gmtset`
Tip!

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

Comments

Loading...