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

gpsgridder.rst 7.3 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
  1. .. index:: ! gpsgridder
  2. .. include:: ../module_supplements_purpose.rst_
  3. **********
  4. gpsgridder
  5. **********
  6. |gpsgridder_purpose|
  7. Synopsis
  8. --------
  9. .. include:: ../../common_SYN_OPTs.rst_
  10. **gmt gpsgridder** [ *table* ]
  11. |-G|\ *outfile*
  12. [ |SYN_OPT-I| ]
  13. [ |SYN_OPT-R| ]
  14. [ |-C|\ [**n**]\ *value*\ [**+f**\ *file*] ]
  15. [ |-E|\ [*misfitfile*] ]
  16. [ |-F|\ [**d**\|\ **f**]\ *fudge* ]
  17. [ |-L| ]
  18. [ |-N|\ *nodefile* ]
  19. [ |-S|\ *nu* ]
  20. [ |-T|\ *maskgrid* ]
  21. [ |SYN_OPT-V| ]
  22. [ |-W|\ [**w**] ]
  23. [ |SYN_OPT-b| ]
  24. [ |SYN_OPT-d| ]
  25. [ |SYN_OPT-e| ]
  26. [ |SYN_OPT-f| ]
  27. [ |SYN_OPT-h| ]
  28. [ |SYN_OPT-o| ]
  29. [ |SYN_OPT-qi| ]
  30. [ |SYN_OPT-x| ]
  31. [ |SYN_OPT-:| ]
  32. [ |SYN_OPT--| ]
  33. |No-spaces|
  34. Description
  35. -----------
  36. **gpsgridder** grids 2-D vector data such as GPS velocities by using a coupled
  37. model based on 2-D elasticity. The degree of coupling can be tuned by adjusting
  38. the effective Poisson's ratio. The solution field can be tuned to extremes such
  39. as incompressible (1), typical elastic (0.5) or even an unphysical value of -1
  40. that basically removes the elastic coupling of vector interpolation. Smoothing
  41. is offered via the optional elimination of small eigenvalues.
  42. Required Arguments
  43. ------------------
  44. *table*
  45. table with GPS strain rates at discrete locations. We expect the input
  46. format to be *x y u v* [ *du dv* ] (see **-W** to specify data uncertainties
  47. or weights). If *lon lat* is given you must supply **-fg** and we will
  48. use a flat Earth approximation in the calculation of distances.
  49. .. _-G:
  50. **-G**\ *outfile*
  51. Name of resulting output file. (1) If options **-R**, **-I**, and
  52. possibly **-r** are set we produce two equidistant output grids. In
  53. this case, *outfile* must be a name template containing the C format
  54. specifier %s, which will be replaced with u and v, respectively.
  55. (2) If option **-T** is selected then **-R**, **-I** cannot be given
  56. as the *maskgrid* determines the region and increments. Again, the
  57. *outfile* must be a name template for the two output grids.
  58. (3) If **-N** is selected then the output is a single ASCII (or binary; see
  59. **-bo**) table written to *outfile*; if **-G** is not given then
  60. this table is written to standard output. The **-G** option is ignored
  61. if **-C** or **-C**\ 0 is given.
  62. Optional Arguments
  63. ------------------
  64. .. _-C:
  65. **-C**\ [**n**]\ *value*\ [**+f**\ *file*]
  66. Find an approximate surface fit: Solve the linear system for the
  67. spline coefficients by SVD and eliminate the contribution from all
  68. eigenvalues whose ratio to the largest eigenvalue is less than *value*
  69. [Default uses Gauss-Jordan elimination to solve the linear system
  70. and fit the data exactly]. If *value* is in 0–1 range the we assume
  71. it is the fraction of eigenvalues to keep. Optionally, append **+f**\ *file* to save the
  72. eigenvalue ratios to the specified file for further analysis.
  73. If a negative *value* is given then **+f**\ *file* is required and
  74. execution will stop after saving the eigenvalues, i.e., no surface
  75. output is produced. Specify **-Cn**\ *value* to retain only the *value* largest eigenvalues.
  76. **Note**: 1/4 of the total number of data constraints is a good starting point
  77. for further experiments.
  78. .. _-E:
  79. **-E**\ [*misfitfile*]
  80. Evaluate the spline exactly at the input data locations and report
  81. statistics of the misfit (mean, standard deviation, and rms) for *u* and
  82. *v* separately and combined. Optionally, append a filename and we will
  83. write the data table, augmented by two extra columns after each of the
  84. *u* and *v* columns holding the spline estimates and misfits. If **-W**
  85. is given we also add two more columns with the chi^2 values.
  86. .. _-F:
  87. **-F**\ [**d**\|\ **f**]\ *fudge*\
  88. The Green's functions are proportional to terms like 1/r^2 and log(r)
  89. and thus blow up for r == 0. To prevent that we offer two fudging schemes:
  90. **-Fd**\ *del_radius* lets you add a constant offset to all radii
  91. and must be specified in the user units. Alternatively, use
  92. **-Ff**\ *factor* which will compute *del_radius* from the product
  93. of the shortest inter-point distance and *factor* [0.01].
  94. .. _-I:
  95. .. include:: ../../explain_-I.rst_
  96. .. _-L:
  97. **-L**
  98. Leave trend alone. Do *not* remove a planer (2-D) trend from the
  99. data before fitting the spline. [Default removes least squares plane,
  100. fits normalized residuals, and restores plane].
  101. .. _-N:
  102. **-N**\ *nodefile*
  103. ASCII file with coordinates of desired output locations **x** in the
  104. first column(s). The resulting *w* values are appended to each
  105. record and written to the file given in **-G** [or stdout if not
  106. specified]; see **-bo** for binary output
  107. instead. This option eliminates the need to specify options **-R**,
  108. **-I**, and **-r**.
  109. .. _-R:
  110. .. |Add_-R| unicode:: 0x20 .. just an invisible code
  111. .. include:: ../../explain_-R.rst_
  112. .. _-S:
  113. **-S**\ *nu*
  114. Specify Poisson's ratio to use for this 2-D elastic sheet [0.5].
  115. **Note**: 1.0 is incompressible in a 2-D formulation while -1
  116. removes all coupling between the two directions.
  117. .. _-T:
  118. **-T**\ *maskgrid*
  119. Only evaluate the solutions at the nodes
  120. in the *maskgrid* that are not set to NaN. This option eliminates
  121. the need to specify options **-R**, **-I** (and **-r**).
  122. .. _-W:
  123. **-W**\ [**w**]
  124. One-sigma data uncertainties for *u* and *v* are provided in the last two columns.
  125. We then compute least squares weights that are inversely proportional to the square
  126. of the uncertainties. Append **w** if weights are given instead of uncertainties,
  127. in which case we just use the weights as provided (no squaring). This results in
  128. a weighted least squares fit. Note that **-W** only has an effect if **-C** is used.
  129. [Default uses no weights or uncertainties].
  130. .. _-V:
  131. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  132. .. include:: ../../explain_-V.rst_
  133. .. |Add_-d| unicode:: 0x20 .. just an invisible code
  134. .. include:: ../../explain_-d.rst_
  135. .. |Add_-e| unicode:: 0x20 .. just an invisible code
  136. .. include:: ../../explain_-e.rst_
  137. **-fg**
  138. Geographic grids (dimensions of longitude, latitude) will be converted to
  139. meters via a "Flat Earth" approximation using the current ellipsoid parameters.
  140. .. |Add_-h| replace:: Not used with binary data.
  141. .. include:: ../../explain_-h.rst_
  142. .. include:: ../../explain_-icols.rst_
  143. .. include:: ../../explain_-qi.rst_
  144. .. |Add_nodereg| unicode:: 0x20 .. just an invisible code
  145. .. include:: ../../explain_nodereg.rst_
  146. .. include:: ../../explain_colon.rst_
  147. .. include:: ../../explain_help.rst_
  148. .. include:: ../../explain_distunits.rst_
  149. Examples
  150. --------
  151. To compute the *u* and *v* strain rate grids from the GPS data set *gps.txt*,
  152. containing *x y u v du dv*, on a 2x2 arc minute grid for California, try
  153. ::
  154. gmt gpsgridder gps.txt -R-125/-114/31/41 -I2m -fg -W -r -Ggps_strain_%s.nc -V
  155. References
  156. ----------
  157. Haines, A. J. et al., 2015, *Enhanced Surface Imaging of Crustal Deformation*, SpringerBriefs in Earth Sciences,
  158. doi:10.1007/978-3-319-21578-5_2.
  159. Sandwell, D. T. and P. Wessel, 2016, Interpolation of 2-D Vector Data Using Constraints from Elasticity,
  160. *Geophys. Res. Lett., 43*, 10,703-10,709,
  161. `http://dx.doi.org/10.1002/2016GL070340 <http://dx.doi.org/10.1002/2016GL070340>`_
  162. See Also
  163. --------
  164. :doc:`gmt </gmt>`,
  165. :doc:`greenspline </greenspline>`
  166. :doc:`nearneighbor </nearneighbor>`,
  167. :doc:`surface </surface>`
Tip!

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

Comments

Loading...