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

sph2grd.rst 3.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
  1. .. index:: ! sph2grd
  2. .. include:: module_core_purpose.rst_
  3. *******
  4. sph2grd
  5. *******
  6. |sph2grd_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt sph2grd** [ *table* ] |-G|\ *grdfile*
  11. |SYN_OPT-I|
  12. |SYN_OPT-R|
  13. [ |-D|\ [**g**\|\ **n**] ]
  14. [ |-E| ]
  15. [ |-F|\ [**k**]\ *filter* ]
  16. [ |-N|\ [*norm*] ]
  17. [ |-Q| ]
  18. [ |SYN_OPT-V| ]
  19. [ |SYN_OPT-bi| ]
  20. [ |SYN_OPT-h| ]
  21. [ |SYN_OPT-i| ]
  22. [ |SYN_OPT-r| ]
  23. [ |SYN_OPT-x| ]
  24. [ |SYN_OPT--| ]
  25. |No-spaces|
  26. Description
  27. -----------
  28. **sph2grd** reads a spherical harmonics coefficient table with records of
  29. L, M, C[L,M], S[L,M] and evaluates the spherical harmonic model on the specified grid.
  30. Required Arguments
  31. ------------------
  32. .. _-G:
  33. **-G**\ *grdfile*
  34. *grdfile* is the name of the binary output grid file. (See GRID FILE FORMAT below.)
  35. .. _-I:
  36. .. include:: explain_-I.rst_
  37. .. _-R:
  38. .. |Add_-R| unicode:: 0x20 .. just an invisible code
  39. .. include:: explain_-R.rst_
  40. Optional Arguments
  41. ------------------
  42. *table*
  43. One or more ASCII [or binary, see **-bi**]
  44. files holding the spherical harmonic coefficients. We expect the
  45. first four columns to hold the degree L, the order M, followed by
  46. the cosine and sine coefficients.
  47. .. _-D:
  48. **-D**\ [**g**\|\ **n**]
  49. Will evaluate a derived field from a geopotential model. Choose
  50. between **Dg** which will compute the gravitational field or **Dn**
  51. to compute the geoid [Add **-E** for anomalies on the ellipsoid].
  52. .. _-E:
  53. **-E**
  54. Evaluate expansion on the current ellipsoid [Default is sphere].
  55. .. _-F:
  56. **-F**\ [**k**]\ *filter*
  57. Filter coefficients according to one of two kinds of filter
  58. specifications:. Select **-Fk** if values are given in km
  59. [Default is coefficient harmonic degree L]. a) Cosine band-pass: Append
  60. four wavelengths *lc/lp/hp/hc*. Coefficients outside *lc/hc* are
  61. cut; those inside *lp/hp* are passed, while the rest are tapered.
  62. Replace wavelength by - to skip, e.g., **-F**-/-/50/75 is a
  63. low-pass filter. b) Gaussian band-pass: Append two wavelengths
  64. *lo/hi* where filter amplitudes = 0.5. Replace wavelength by -
  65. to skip, e.g., **-F**\ 70/- is a high-pass Gaussian filter.
  66. .. _-N:
  67. **-N**\ [*norm*]
  68. Normalization used for coefficients. Choose among **m**: Mathematical
  69. normalization - inner products summed over surface equal 1 [Default].
  70. **g** Geodesy normalization - inner products summed over surface
  71. equal 4pi. **s**: Schmidt normalization - as used in geomagnetism.
  72. .. _-V:
  73. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  74. .. include:: explain_-V.rst_
  75. .. |Add_-bi| replace:: [Default is 4 input columns].
  76. .. include:: explain_-bi.rst_
  77. .. |Add_-h| replace:: Not used with binary data.
  78. .. include:: explain_-h.rst_
  79. .. include:: explain_-icols.rst_
  80. .. |Add_nodereg| unicode:: 0x20 .. just an invisible code
  81. .. include:: explain_nodereg.rst_
  82. .. include:: explain_core.rst_
  83. .. include:: explain_help.rst_
  84. .. include:: explain_float.rst_
  85. .. include:: explain_grd_output.rst_
  86. .. include:: explain_grd_coord.rst_
  87. Examples
  88. --------
  89. To create a 1 x 1 degree global grid file from the ASCII
  90. coefficients in the remote file EGM96_to_360.txt, use
  91. ::
  92. gmt sph2grd @EGM96_to_360.txt -GEGM96_to_360.nc -Rg -I1 -V
  93. Reference
  94. ---------
  95. Holmes, S. A., and Featherstone, W. E., 2002, A unified approach to
  96. the Clenshaw summation and the recursive computation of very high
  97. degree and order normalized associated Legendre functions:
  98. *J. Geodesy, v. 76, p. 279-299*.
  99. See Also
  100. --------
  101. :doc:`gmt`,
  102. :doc:`grdfft`,
  103. :doc:`grdmath`
Tip!

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

Comments

Loading...