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

x2sys_datalist.rst 5.9 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
  1. .. index:: ! x2sys_datalist
  2. .. include:: ../module_supplements_purpose.rst_
  3. ****************
  4. x2sys_datalist
  5. ****************
  6. |x2sys_datalist_purpose|
  7. Synopsis
  8. --------
  9. .. include:: ../../common_SYN_OPTs.rst_
  10. **gmt x2sys_datalist** *track(s)* **-T**\ *TAG*
  11. [ |-A| ]
  12. [ |-E| ]
  13. [ |-F|\ *name1*,\ *name2*,... ]
  14. [ |-I|\ [*list*] ]
  15. [ |-L|\ [*corrtable*] ]
  16. [ |SYN_OPT-R| ]
  17. [ |-S| ] [
  18. [ |SYN_OPT-V| ]
  19. [ |SYN_OPT-bo| ]
  20. [ |SYN_OPT-do| ]
  21. [ |SYN_OPT-h| ]
  22. [ |SYN_OPT--| ]
  23. |No-spaces|
  24. Description
  25. -----------
  26. **x2sys_datalist** reads one or more files and produces a single ASCII
  27. [or binary] table. The files can be of any format; this information is
  28. encoded in the TAG set with the |-T| option. You may limit the output to
  29. a geographic region, and insist that the output from several files be
  30. separated by a multiple segment header. Only the named data fields will
  31. be output [Default selects all columns].
  32. Required Arguments
  33. ------------------
  34. .. include:: explain_track.rst_
  35. .. include:: explain_tag.rst_
  36. Optional Arguments
  37. ------------------
  38. .. _-A:
  39. **-A**
  40. Eliminate COEs by distributing the COE between the two tracks in
  41. proportion to track weight. These (dist, adjustment) spline knots
  42. files for each track and data column are called *track.column*.adj
  43. and are expected to be in the **$X2SYS_HOME**/*TAG* directory. The
  44. adjustments are only applied if the corresponding adjust file can be
  45. found [No residual adjustments].
  46. .. _-E:
  47. **-E**
  48. Enhance ASCII output by writing GMT segment headers between data
  49. from each track [no segment headers].
  50. .. _-F:
  51. **-F**\ *name1*,\ *name2*,...
  52. Give a comma-separated sub-set list of column names defined in the
  53. format definition file. [Default selects all data columns].
  54. .. _-I:
  55. **-I**\ [*list*]
  56. Name of ASCII file with a list of track names (one per record) that
  57. should be excluded from consideration [Default includes all tracks].
  58. .. _-L:
  59. **-L**\ [*corrtable*]
  60. Apply optimal corrections to columns where such corrections are
  61. available. Append the correction table to use [Default uses the
  62. correction table *TAG*\ \_corrections.txt which is expected to
  63. reside in the **$X2SYS_HOME**/*TAG* directory]. For the format of
  64. this file, see CORRECTIONS below.
  65. .. _-R:
  66. .. |Add_-Rgeo| replace:: For Cartesian
  67. data just give *xmin/xmax/ymin/ymax*. This option limits the COEs to
  68. those that fall inside the specified domain.
  69. .. include:: ../../explain_-Rgeo.rst_
  70. .. _-S:
  71. **-S**
  72. Suppress output records where all the data columns are NaN [Default
  73. will output all records].
  74. .. _-V:
  75. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  76. .. include:: ../../explain_-V.rst_
  77. .. |Add_-bo| unicode:: 0x20 .. just an invisible code
  78. .. include:: ../../explain_-bo.rst_
  79. .. |Add_-do| unicode:: 0x20 .. just an invisible code
  80. .. include:: ../../explain_-do.rst_
  81. .. |Add_-h| unicode:: 0x20 .. just an invisible code
  82. .. include:: ../../explain_-h.rst_
  83. .. include:: ../../explain_help.rst_
  84. Examples
  85. --------
  86. To extract all data from the old-style MGG supplement file c2104.gmt,
  87. recognized by the tag GMT:
  88. ::
  89. gmt x2sys_datalist c2104.gmt -TGMT > myfile
  90. To make lon,lat, and depth input for :doc:`blockmean </blockmean>` and :doc:`surface </surface>` using
  91. all the files listed in the file tracks.lis and defined by the tag TRK,
  92. but only the data that are inside the specified area, and make output
  93. binary, run
  94. ::
  95. gmt x2sys_datalist =tracks.lis -TTRK -Flon,lat,depth -R40/-30/25/35 -bo > alltopo_bin.xyz
  96. Corrections
  97. -----------
  98. The correction table is an ASCII file with coefficients and parameters
  99. needed to carry out corrections. This table is usually produced by
  100. **x2sys_solve**. Comment records beginning with # are allowed. All
  101. correction records are of the form
  102. *trackID observation correction*
  103. where *trackID* is the track name, *observation* is one of the
  104. abbreviations for an observed field contained in files under this TAG,
  105. and *correction* consists of one or more white-space-separated *term*\ s
  106. that will be **subtracted** from the observation before output. Each
  107. *term* must have this exact syntax:
  108. *factor*\ [\*[*function*]([*scale*](\ *abbrev*\ [-*origin*]))[^\ *power*]]
  109. where terms in brackets are optional (the brackets themselves are not
  110. used but regular parentheses must be used exactly as indicated). No
  111. spaces are allowed except between *term*\ s. The *factor* is the
  112. amplitude of the basis function, while the optional *function* can be
  113. one of sin, cos, or exp. The optional *scale* and *origin* can be used
  114. to translate the argument (before giving it to the optional function).
  115. The argument *abbrev* is one of the abbreviations for columns known to
  116. this TAG. However, it can also be one of the three auxiliary terms
  117. **dist** (for along-track distances), **azim** for along-track azimuths,
  118. and **vel** (for along-track speed); these are all sensitive to the
  119. **-C** and **-N** settings used when defining the TAG; furthermore,
  120. **vel** requires **time** to be present in the data. If *origin* is
  121. given as **T** it means that we should replace it with the value of
  122. *abbrev* for the very first record in the file (this is usually only
  123. done for *time*). If the first data record entry is NaN we revert
  124. *origin* to zero. Optionally, raise the entire expression to the given
  125. *power*, before multiplying by *factor*. The following is an example of
  126. fictitious corrections to the track ABC, implying the **z** column
  127. should have a linear trend removed, the field **obs** should be
  128. corrected by a strange dependency on latitude, **weight** needs to have
  129. 1 added (hence correction is given as -1), and **fuel** should be
  130. reduced by a linear distance term:
  131. ABC z 7.1 1e-4\*((time-T))
  132. ABC obs 0.5\*exp(-1e-3(lat))^1.5
  133. ABC weight -1
  134. ABC fuel 0.02\*((dist))
  135. See Also
  136. --------
  137. :doc:`blockmean </blockmean>`,
  138. :doc:`gmt </gmt>`,
  139. :doc:`surface </surface>`,
  140. :doc:`x2sys_init`,
  141. :doc:`x2sys_datalist`,
  142. :doc:`x2sys_get`,
  143. :doc:`x2sys_list`,
  144. :doc:`x2sys_put`,
  145. :doc:`x2sys_report`,
  146. :doc:`x2sys_solve`
Tip!

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

Comments

Loading...