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

gmtinfo.rst 8.5 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
  1. .. index:: ! gmtinfo
  2. .. include:: module_core_purpose.rst_
  3. *******
  4. gmtinfo
  5. *******
  6. |gmtinfo_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt info** [ *table* ] [ |-A|\ **a**\|\ **f**\|\ **s** ]
  11. [ |-C| ]
  12. [ |-D|\ [*dx*\ [/*dy*]] ]
  13. [ |-E|\ **L**\|\ **l**\|\ **H**\|\ **h**\ [*col*] ]
  14. [ |-F|\ [**i**\|\ **d**\|\ **t**] ]
  15. [ |-I|\ [**b**\|\ **e**\|\ **f**\|\ **p**\|\ **s**]\ *dx*\ [/*dy*\ [/*dz*...][**+e**\|\ **r**\|\ **R**] ]
  16. [ |-L| ]
  17. [ |-S|\ [**x**][**y**] ]
  18. [ |-T|\ *dz*\ [**+c**\ *col*] ]
  19. [ |SYN_OPT-V| ]
  20. [ |SYN_OPT-a| ]
  21. [ |SYN_OPT-bi| ]
  22. [ |SYN_OPT-di| ]
  23. [ |SYN_OPT-e| ]
  24. [ |SYN_OPT-f| ]
  25. [ |SYN_OPT-g| ]
  26. [ |SYN_OPT-h| ]
  27. [ |SYN_OPT-i| ]
  28. [ |SYN_OPT-o| ]
  29. [ |SYN_OPT-qi| ]
  30. [ |SYN_OPT-r| ]
  31. [ |SYN_OPT-s| ]
  32. [ |SYN_OPT-:| ]
  33. [ |SYN_OPT--| ]
  34. |No-spaces|
  35. Description
  36. -----------
  37. **info** reads its standard input [or from files] and finds the
  38. extreme values in each of the columns reported as slash-separated min/max
  39. pairs. It recognizes NaNs and will print warnings if the number of columns
  40. vary from record to record. The pairs can be split into two separate columns
  41. by using the **-C** option. As another option, **info** can find the extent
  42. of data in the first two columns rounded up and down to the nearest multiple of the
  43. supplied increments given by **-I**. Such output will be in the text form
  44. **-R**\ *w/e/s/n*, which can be used directly on the command line for other
  45. modules (hence only *dx* and *dy* are needed). If **-C** is combined with
  46. **-I** then the output will be in column form and rounded up/down for as many
  47. columns as there are increments provided in **-I**. A similar option (**-T**)
  48. will provide a **-T**\ *zmin/zmax/dz* string for makecpt.
  49. Required Arguments
  50. ------------------
  51. None.
  52. Optional Arguments
  53. ------------------
  54. .. |Add_intables| unicode:: 0x20 .. just an invisible code
  55. .. include:: explain_intables.rst_
  56. .. _-A:
  57. **-A**\ **a**\|\ **f**\|\ **s**
  58. Specify how the range should be reported. Choose **-Aa** for the
  59. range of all files combined, **-Af** to report the range for each
  60. file separately, and **-As** to report the range for each segment
  61. (in multisegment files) separately. [Default is **-Aa**].
  62. .. _-C:
  63. **-C**
  64. Report the min/max values per column in separate columns [Default
  65. uses <min/max> format]. When used, users may also use **-o** to
  66. limit which output columns should be reported [all].
  67. .. _-D:
  68. **-D**\ [*dx*\ [/*dy*]]
  69. Modifies results obtained by **-I** by shifting the region to better
  70. align with the center of the data. Optionally, append granularity
  71. for this shift [Default performs an exact shift].
  72. .. _-E:
  73. **-EL**\|\ **l**\|\ **H**\|\ **h**\ [*col*]
  74. Returns the record whose column *col* contains the minimum
  75. (**l**) or maximum (**h**) value. Upper case
  76. (**L\|H**) works on absolute value of the data. In case of multiple
  77. matches, only the first record is returned. If *col* is not
  78. specified we default to the last column in the data.
  79. .. _-F:
  80. **-F**\ [**i**\|\ **d**\|\ **t**]
  81. Returns the counts of various records depending on the appended mode:
  82. **i** returns a single record with the total number of tables, segments,
  83. data records, header records, and overall records. In contrast, **d** returns
  84. information for each segment in the virtual data set: *tbl_number, seg_number,
  85. n_rows, start_rec, stop_rec*. Mode **t** does the same but honors the input
  86. table organization and thus resets *seg_number, start_rec, stop_rec* at the
  87. start of each new table.
  88. .. _-I:
  89. **-I**\ [**b**\|\ **e**\|\ **f**\|\ **p**\|\ **s**]\ *dx*\ [/*dy*\ [/*dz*...][**+e**\|\ **r**\|\ **R**]
  90. Report the min/max of the first *n* columns to the nearest multiple
  91. of the provided increments (separate the *n* increments by slashes),
  92. and output results in the form **-R**\ *w/e/s/n* (unless **-C** is
  93. set). If only one increment is given we also use it for the second
  94. column (for backwards compatibility). To override this behavior, use
  95. **-Ip**\ *dx*. If the input *x*- and *y*-coordinates all have the
  96. same phase shift relative to the *dx* and *dy* increments then we
  97. use those phase shifts in determining the region, and you may use
  98. |SYN_OPT-r| to switch from gridline-registration to pixel-registration.
  99. For irregular data both phase shifts are set to 0 and the |SYN_OPT-r| is ignored.
  100. Use **-If**\ *dx*\ [/*dy*] to report an extended region optimized
  101. to give grid dimensions for fastest results in programs using FFTs.
  102. Use **-Is**\ *dx*\ [/*dy*] to report an extended region optimized to
  103. give grid dimensions for fastest results in programs like surface.
  104. Use **-Ib** to write the bounding box of the data table or segments (see **-A**)
  105. as a closed polygon segment. **Note**: For oblique projections you should
  106. use the **-Ap** option in :doc:`plot` to draw the box properly.
  107. If **-Ie** is given then the exact min/max of the input is given in the **-R** string.
  108. Append **+r** to modify the min/max of the first *n* columns further:
  109. Append *inc*, *xinc*/*yinc*, or *winc*/*einc*/*sinc*/*ninc* to adjust the
  110. region to be a multiple of these steps [no adjustment]. Alternatively, use **+R** to extend the region
  111. outward by adding these increments instead, or **+e** which is like **+r** but
  112. it ensures that the bounding box extends by at least 0.25 times the increment [no extension].
  113. .. _-L:
  114. **-L**
  115. Determines common limits across tables (**-Af**) or segments (**-As**).
  116. If used with **-I** it will round inwards so that the resulting bounds
  117. lie within the actual data domain.
  118. .. _-S:
  119. **-S**\ [**x**][**y**]
  120. Add extra space for error bars. Useful together with **-I** option
  121. and when later plotting with :doc:`plot` **-E**. **-Sx** leaves space
  122. for horizontal error bars using the values in third
  123. (2) column. **-Sy** leaves space for vertical error
  124. bars using the values in fourth (3) column. **-S**
  125. or **-Sxy** leaves space for both error bars using the values in
  126. third and fourth (2 and 3) columns.
  127. .. _-T:
  128. **-T**\ *dz*\ [**+c**\ *col*]
  129. Report the min/max of the first (0'th) column to the nearest multiple of *dz* and output this as the
  130. string **-T**\ *zmin/zmax/dz*. To use another column, append **+c**\ *col*. Cannot be used together with **-I**.
  131. .. _-V:
  132. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  133. .. include:: explain_-V.rst_
  134. .. include:: explain_-aspatial.rst_
  135. .. |Add_-bi| replace:: [Default is 2 input columns].
  136. .. include:: explain_-bi.rst_
  137. .. |Add_-di| unicode:: 0x20 .. just an invisible code
  138. .. include:: explain_-di.rst_
  139. .. |Add_-e| unicode:: 0x20 .. just an invisible code
  140. .. include:: explain_-e.rst_
  141. .. |Add_-f| unicode:: 0x20 .. just an invisible code
  142. .. include:: explain_-f.rst_
  143. .. |Add_-g| unicode:: 0x20 .. just an invisible code
  144. .. include:: explain_-g.rst_
  145. .. |Add_-h| unicode:: 0x20 .. just an invisible code
  146. .. include:: explain_-h.rst_
  147. .. include:: explain_-icols.rst_
  148. .. include:: explain_-ocols.rst_
  149. .. include:: explain_-qi.rst_
  150. .. |Add_nodereg| unicode:: 0x20 .. just an invisible code
  151. .. include:: explain_nodereg.rst_
  152. .. include:: explain_-s.rst_
  153. .. include:: explain_colon.rst_
  154. .. include:: explain_help.rst_
  155. .. include:: explain_precision.rst_
  156. Examples
  157. --------
  158. .. include:: explain_example.rst_
  159. To find the extreme values in the remote file @ship_15.txt::
  160. gmt info @ship_15.tx
  161. Output should look like::
  162. ship_15.txt: N = 82651 <245/254.705> <20/29.99131> <-4504/-9>
  163. To find the extreme values in @ship_15.txt to the nearest 5 units
  164. but shifted to within 1 unit of the data center, and use this region to
  165. plot all the points as small black circles using :doc:`plot`, run
  166. ::
  167. gmt plot `gmt info -I5 -D1 @ship_15.txt` @ship_15.txt -B -Sc2p -pdf map
  168. To find the min and max values for each of the first 3 columns, but
  169. rounded to integers, and return the result individually for each data
  170. file, use
  171. ::
  172. gmt info @ship_15.txt -C -I1/1/1
  173. Given seven profiles with different start and stop positions, we
  174. want to find a range of positions, with increment of 5, that are
  175. common to all the profiles. We use
  176. ::
  177. gmt info profile_[123567].txt -L -I5
  178. The file magprofs.txt contains a number of magnetic profiles stored
  179. as separate data segments. We need to know how many segments there
  180. are and use
  181. ::
  182. gmt info magprofs.txt -Fi
  183. Bugs
  184. ----
  185. The **-I** option does not yet work properly with time series data
  186. (e.g., **-f**\ 0T). Thus, such variable intervals as months and years
  187. are not calculated. Instead, specify your interval in the same units as
  188. the current setting of :term:`TIME_UNIT`.
  189. See Also
  190. --------
  191. :doc:`gmt`,
  192. :doc:`gmtconvert`,
  193. :doc:`plot`
Tip!

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

Comments

Loading...