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

grdrotater.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
197
198
199
200
201
202
203
204
205
  1. .. index:: ! grdrotater
  2. .. include:: ../module_supplements_purpose.rst_
  3. **********
  4. grdrotater
  5. **********
  6. |grdrotater_purpose|
  7. Synopsis
  8. --------
  9. .. include:: ../../common_SYN_OPTs.rst_
  10. **gmt grdrotater** *ingrdfile* |-E|\ *rot_file*\|\ *lon*/*lat*/*angle*
  11. |-G|\ *outgrdfile*
  12. [ |-A|\ *region* ]
  13. [ |-D|\ *rotoutline* ]
  14. [ |-F|\ *polygonfile* ]
  15. [ |-N| ]
  16. [ |SYN_OPT-R| ]
  17. [ |-S| ]
  18. [ |-T|\ *ages* ]
  19. [ |SYN_OPT-V| ]
  20. [ |SYN_OPT-b| ]
  21. [ |SYN_OPT-d| ]
  22. [ |SYN_OPT-h| ]
  23. [ |SYN_OPT-n| ]
  24. [ |SYN_OPT-:| ]
  25. [ |SYN_OPT--| ]
  26. |No-spaces|
  27. Description
  28. -----------
  29. **grdrotater** reads a geographical grid and reconstructs it given
  30. total reconstruction rotations. Optionally, the user may supply a
  31. clipping polygon in multiple-segment format; then, only the part of the
  32. grid inside the polygon is used to determine the reconstructed region. The
  33. outlines of the reconstructed region is also returned provided the
  34. rotated region is not the entire globe.
  35. Required Arguments
  36. ------------------
  37. *ingrdfile*
  38. Name of a grid file in geographical (lon, lat) coordinates.
  39. .. include:: explain_rots.rst_
  40. .. _-G:
  41. **-G**\ *outgrdfile*
  42. Name of output grid. This is the grid with the data reconstructed
  43. according to the specified rotation. If more than one reconstruction
  44. time is implied then *outgrdfile* must contain a C-format specifier
  45. to format a floating point number (reconstruction time) to text.
  46. Optional Arguments
  47. ------------------
  48. .. _-A:
  49. **-A**\ *region*
  50. Specify directly the region of the rotated grid. By default, the
  51. output grid has a region that exactly matches the extent of the rotated
  52. domain, but **-A** can be used to crop or extend this region to that
  53. provided via *region*.
  54. .. _-D:
  55. **-D**\ *rotoutline*
  56. Name of the grid polygon outline file. This represents the outline
  57. of the grid reconstructed to the specified time. If more than one reconstruction
  58. time is implied then *rotoutline* must contain a C-format specifier
  59. to format a floating point number (reconstruction time) to text.
  60. If only one time is implied and **-D** is not set then we write the
  61. polygon to stdout (but see **-N**).
  62. .. _-F:
  63. **-F**\ *polygonfile*
  64. Specify a multisegment closed polygon file that describes the inside
  65. area of the grid that should be projected [Default projects entire grid].
  66. .. _-N:
  67. **-N**
  68. Do Not output the rotated polygon outline [Default will write it to
  69. stdout, or to a file via **-D**].
  70. .. _-R:
  71. .. |Add_-Rgeo| unicode:: 0x20 .. just an invisible code
  72. .. include:: ../../explain_-Rgeo.rst_
  73. .. _-S:
  74. **-S**
  75. Skip the rotation of the grid, just rotate the polygon outline
  76. (requires **-F** if no grid is provided).
  77. .. _-T:
  78. **-T**\ *ages*
  79. Sets the desired reconstruction times. For a single time append
  80. the desired time. For an equidistant range of reconstruction times
  81. give **-T**\ *start*\ /\ *stop*\ /\ *inc*. Append **+n** if *inc* should
  82. be interpreted to mean *npoints* instead.
  83. For an non-equidistant set of reconstruction times please pass them
  84. via the first column in a file, e.g., **-T**\ *agefile*. If no **-T**
  85. option is given and **-E** specified a rotation file then we equate
  86. the rotation file times with the reconstruction times.
  87. .. _-V:
  88. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  89. .. include:: ../../explain_-V.rst_
  90. .. |Add_-bi| replace:: [Default is 2 input columns].
  91. .. include:: ../../explain_-bi.rst_
  92. .. |Add_-bo| replace:: [Default is same as input].
  93. .. include:: ../../explain_-bo.rst_
  94. .. |Add_-d| unicode:: 0x20 .. just an invisible code
  95. .. include:: ../../explain_-d.rst_
  96. .. |Add_-h| unicode:: 0x20 .. just an invisible code
  97. .. include:: ../../explain_-h.rst_
  98. .. include:: ../../explain_colon.rst_
  99. .. include:: ../../explain_-n.rst_
  100. .. include:: ../../explain_help.rst_
  101. .. include:: ../../explain_grdresample2.rst_
  102. .. include:: explain_geodetic.rst_
  103. Examples
  104. --------
  105. To rotate the data defined by grid topo.nc and the polygon outline
  106. clip_path.txt, using a total reconstruction rotation with pole at (135.5,
  107. -33.0) and a rotation angle of 37.3 degrees and bicubic interpolation, try
  108. ::
  109. gmt grdrotater topo.nc -E135.5/-33/37.3 -V -Fclip_path.txt -Grot_topo.nc > rot_clip_path.txt
  110. To rotate the entire grid faa.nc back to 32 Ma using the rotation file
  111. *rotations.txt* and a bilinear interpolation, try
  112. ::
  113. gmt grdrotater faa.nc -Erotations.txt -T32 -V -Grot_faa.nc -nl > rot_faa_path.txt
  114. To just see how the outline of the grid large.nc will plot after the
  115. same rotation, try
  116. ::
  117. gmt grdrotater large.nc -Erotations.txt -T32 -V -S | gmt plot -Rg -JH180/6i -B30 -W0.5p \| gv -
  118. To rotate the grid topo.nc back to 100 Ma using the rotation file
  119. *rotations.txt* and request a reconstruction every 10 Myr, saving
  120. both grids and outlines to filenames that derive from templates, try
  121. ::
  122. gmt grdrotater topo.nc -Erotations.txt -T10/100/10 -V -Grot_topo_%g.nc -Drot_topo_path_%g.txt
  123. Let say you have rotated gridA.nc and gridB.nc, restricting each
  124. rotation to nodes inside polygons polyA.txt and polyB.txt, respectively,
  125. using rotation A = (123W,22S,16,4) and rotation B = (108W, 16S, -14.5),
  126. yielding rotated grids rot_gridA.nc and rot_gridB.nc. To determine the
  127. region of overlap between the rotated grids, we use :doc:`grdmath </grdmath>`:
  128. ::
  129. gmt grdmath 1 rot_gridA.nc ISNAN SUB 1 rot_gridB.nc ISNAN SUB 2 EQ = overlap.nc
  130. The grid overlap.nc now has 1s in the regions of overlap and 0
  131. elsewhere. You can use it as a mask or use :doc:`grdcontour </grdcontour>` **-D** to extract
  132. a polygon (i.e., a contour).
  133. Notes
  134. -----
  135. GMT distributes the EarthByte rotation model Global_EarthByte_230-0Ma_GK07_AREPS.rot.
  136. To use an alternate rotation file, create an environmental parameters named
  137. **GPLATES_ROTATIONS** that points to an alternate rotation file.
  138. See Also
  139. --------
  140. :doc:`backtracker`,
  141. :doc:`grdcontour </grdcontour>`,
  142. :doc:`gmtpmodeler`,
  143. :doc:`grdmath </grdmath>`,
  144. :doc:`grdpmodeler`,
  145. :doc:`grdspotter`,
  146. :doc:`hotspotter`,
  147. :doc:`originater`,
  148. :doc:`rotconverter`
Tip!

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

Comments

Loading...