|
22 | 22 | }, |
23 | 23 | { |
24 | 24 | "cell_type": "code", |
25 | | - "execution_count": 1, |
| 25 | + "execution_count": 2, |
26 | 26 | "id": "08455b0e-32fb-49fd-b247-79a8067cb24c", |
27 | 27 | "metadata": {}, |
28 | 28 | "outputs": [], |
|
75 | 75 | }, |
76 | 76 | { |
77 | 77 | "cell_type": "code", |
78 | | - "execution_count": 2, |
| 78 | + "execution_count": 3, |
79 | 79 | "id": "07df9789-d606-489b-9a71-1a424f806c91", |
80 | 80 | "metadata": {}, |
81 | 81 | "outputs": [], |
|
84 | 84 | "\n", |
85 | 85 | "ds_ref = xr.open_dataset(file_model, engine='lenapyGfc', no_date=True)\n", |
86 | 86 | "\n", |
87 | | - "# Convert radius and GM of reference to be coherent with ICGEM computation\n", |
88 | | - "ds_ref = ds_ref.lnharmo.change_reference(new_radius=6378137.0, new_earth_gravity_constant=3.986005e14)\n", |
89 | | - "\n", |
90 | | - "# Default ds.attrs radius and earth_gravity_constant are used for the computation (set with change_reference())\n", |
91 | | - "grid_lenapy = ds_ref.lnharmo.to_grid(unit='potential', ellipsoidal_earth=False)\n", |
| 87 | + "# Inside convertion of SH coefficients by giving a_earth and GM of the new reference to be coherent with ICGEM computation\n", |
| 88 | + "grid_lenapy = ds_ref.lnharmo.to_grid(unit='potential', ellipsoidal_earth=False, a_earth=6378137.0, earth_gravity_constant=3.986005e14)\n", |
92 | 89 | "\n", |
93 | | - "grid_lenapy_ellps = ds_ref.lnharmo.to_grid(unit='potential', ellipsoidal_earth=True, f_earth=1/298.257222101)" |
| 90 | + "grid_lenapy_ellps = ds_ref.lnharmo.to_grid(unit='potential', ellipsoidal_earth=True, f_earth=1/298.257222101, a_earth=6378137.0, earth_gravity_constant=3.986005e14)" |
94 | 91 | ] |
95 | 92 | }, |
96 | 93 | { |
97 | 94 | "cell_type": "code", |
98 | | - "execution_count": 3, |
| 95 | + "execution_count": 4, |
99 | 96 | "id": "28ee5716-c77e-4a0e-a872-b97184a7b0b5", |
100 | 97 | "metadata": {}, |
101 | 98 | "outputs": [ |
|
150 | 147 | }, |
151 | 148 | { |
152 | 149 | "cell_type": "code", |
153 | | - "execution_count": 4, |
| 150 | + "execution_count": 5, |
154 | 151 | "id": "9f129e2a-c5a6-4869-abcd-b4e8628dae41", |
155 | 152 | "metadata": {}, |
156 | 153 | "outputs": [ |
|
214 | 211 | }, |
215 | 212 | { |
216 | 213 | "cell_type": "code", |
217 | | - "execution_count": 5, |
| 214 | + "execution_count": 6, |
218 | 215 | "id": "8821900e-a794-4ba1-a1ce-edc9b5ff9ace", |
219 | 216 | "metadata": {}, |
220 | 217 | "outputs": [], |
|
229 | 226 | }, |
230 | 227 | { |
231 | 228 | "cell_type": "code", |
232 | | - "execution_count": 6, |
| 229 | + "execution_count": 7, |
233 | 230 | "id": "7dd1e41a-d705-44b8-a17b-ae21e3e9bd51", |
234 | 231 | "metadata": {}, |
235 | 232 | "outputs": [ |
|
282 | 279 | }, |
283 | 280 | { |
284 | 281 | "cell_type": "code", |
285 | | - "execution_count": 7, |
| 282 | + "execution_count": 8, |
286 | 283 | "id": "ef5824e1-54e2-4007-af08-065457822d3c", |
287 | 284 | "metadata": {}, |
288 | 285 | "outputs": [ |
|
0 commit comments