|
1 | 1 | { |
2 | 2 | "cells": [ |
3 | 3 | { |
4 | | - "cell_type": "code", |
5 | | - "execution_count": 1, |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "# Computing velocity-grid following sections with `sectionate`\n", |
| 8 | + "\n", |
| 9 | + "In this example, we use the `sectionate.grid_section` function to find the indices for the series of grid cell faces (corresponding to velocity points on an Arakawa \"C-grid\" model such as MOM6) that best approximate a hydrographic section input by the user. In this case, we consider both the West and East sections of the *Overturning of the Subpolar North Atlantic (OSNAP)* observational program.\n", |
| 10 | + "\n", |
| 11 | + "We consider both cases of MOM6's horizontal grid configurations: non-symmetric (excluding the cell faces at the western and southern edges of the domain; also used in MOM5 and the MITgcm C-grids) and symmetric (including all tracer cell faces)." |
| 12 | + ] |
| 13 | + }, |
| 14 | + { |
| 15 | + "cell_type": "markdown", |
6 | 16 | "metadata": {}, |
7 | | - "outputs": [], |
8 | 17 | "source": [ |
9 | | - "%load_ext autoreload\n", |
10 | | - "%autoreload 2" |
| 18 | + "## Import packages" |
11 | 19 | ] |
12 | 20 | }, |
13 | 21 | { |
14 | 22 | "cell_type": "code", |
15 | | - "execution_count": 2, |
| 23 | + "execution_count": 1, |
16 | 24 | "metadata": {}, |
17 | 25 | "outputs": [ |
18 | 26 | { |
19 | 27 | "name": "stdout", |
20 | 28 | "output_type": "stream", |
21 | 29 | "text": [ |
22 | | - "Sectionate version: 0.5.0\n" |
| 30 | + "Sectionate version: 0.3.3\n" |
23 | 31 | ] |
24 | 32 | } |
25 | 33 | ], |
|
33 | 41 | "print(f\"Sectionate version: {sectionate.__version__}\")" |
34 | 42 | ] |
35 | 43 | }, |
36 | | - { |
37 | | - "cell_type": "markdown", |
38 | | - "metadata": {}, |
39 | | - "source": [ |
40 | | - "# Computing velocity-grid following sections with `sectionate`\n", |
41 | | - "\n", |
42 | | - "In this example, we use the `sectionate.grid_section` function to find the indices for the series of grid cell faces (corresponding to velocity points on an Arakawa \"C-grid\" model such as MOM6) that best approximate a hydrographic section input by the user. In this case, we consider both the West and East sections of the *Overturning of the Subpolar North Atlantic (OSNAP)* observational program.\n", |
43 | | - "\n", |
44 | | - "We consider both cases of MOM6's horizontal grid configurations: non-symmetric (excluding the cell faces at the western and southern edges of the domain; also used in MOM5 and the MITgcm C-grids) and symmetric (including all tracer cell faces)." |
45 | | - ] |
46 | | - }, |
47 | 44 | { |
48 | 45 | "cell_type": "markdown", |
49 | 46 | "metadata": {}, |
|
67 | 64 | }, |
68 | 65 | { |
69 | 66 | "cell_type": "code", |
70 | | - "execution_count": 3, |
| 67 | + "execution_count": 2, |
71 | 68 | "metadata": {}, |
72 | 69 | "outputs": [ |
73 | 70 | { |
|
108 | 105 | }, |
109 | 106 | { |
110 | 107 | "cell_type": "code", |
111 | | - "execution_count": 4, |
| 108 | + "execution_count": 3, |
112 | 109 | "metadata": {}, |
113 | 110 | "outputs": [], |
114 | 111 | "source": [ |
|
126 | 123 | }, |
127 | 124 | { |
128 | 125 | "cell_type": "code", |
129 | | - "execution_count": 5, |
| 126 | + "execution_count": 4, |
130 | 127 | "metadata": {}, |
131 | 128 | "outputs": [], |
132 | 129 | "source": [ |
|
140 | 137 | }, |
141 | 138 | { |
142 | 139 | "cell_type": "code", |
143 | | - "execution_count": 6, |
| 140 | + "execution_count": 5, |
144 | 141 | "metadata": {}, |
145 | 142 | "outputs": [ |
146 | 143 | { |
|
184 | 181 | }, |
185 | 182 | { |
186 | 183 | "cell_type": "code", |
187 | | - "execution_count": 7, |
| 184 | + "execution_count": 6, |
188 | 185 | "metadata": {}, |
189 | 186 | "outputs": [], |
190 | 187 | "source": [ |
|
206 | 203 | }, |
207 | 204 | { |
208 | 205 | "cell_type": "code", |
209 | | - "execution_count": 8, |
| 206 | + "execution_count": 7, |
210 | 207 | "metadata": {}, |
211 | 208 | "outputs": [ |
212 | 209 | { |
|
245 | 242 | "tags": [] |
246 | 243 | }, |
247 | 244 | "source": [ |
248 | | - "### 2. Symmetric grid example (MOM6)" |
| 245 | + "### B) Symmetric grid example (MOM6)" |
249 | 246 | ] |
250 | 247 | }, |
251 | 248 | { |
|
257 | 254 | }, |
258 | 255 | { |
259 | 256 | "cell_type": "code", |
260 | | - "execution_count": 9, |
| 257 | + "execution_count": 8, |
261 | 258 | "metadata": {}, |
262 | 259 | "outputs": [], |
263 | 260 | "source": [ |
|
277 | 274 | }, |
278 | 275 | { |
279 | 276 | "cell_type": "code", |
280 | | - "execution_count": 10, |
| 277 | + "execution_count": 9, |
281 | 278 | "metadata": {}, |
282 | 279 | "outputs": [], |
283 | 280 | "source": [ |
|
297 | 294 | }, |
298 | 295 | { |
299 | 296 | "cell_type": "code", |
300 | | - "execution_count": 11, |
| 297 | + "execution_count": 10, |
301 | 298 | "metadata": {}, |
302 | 299 | "outputs": [], |
303 | 300 | "source": [ |
|
311 | 308 | }, |
312 | 309 | { |
313 | 310 | "cell_type": "code", |
314 | | - "execution_count": 12, |
| 311 | + "execution_count": 11, |
315 | 312 | "metadata": {}, |
316 | 313 | "outputs": [ |
317 | 314 | { |
|
347 | 344 | }, |
348 | 345 | { |
349 | 346 | "cell_type": "code", |
350 | | - "execution_count": 13, |
| 347 | + "execution_count": 12, |
351 | 348 | "metadata": {}, |
352 | 349 | "outputs": [], |
353 | 350 | "source": [ |
|
360 | 357 | }, |
361 | 358 | { |
362 | 359 | "cell_type": "code", |
363 | | - "execution_count": 14, |
| 360 | + "execution_count": 13, |
364 | 361 | "metadata": {}, |
365 | 362 | "outputs": [ |
366 | 363 | { |
|
369 | 366 | "(np.float64(-50.0), np.float64(0.0), np.float64(51.0), np.float64(67.0))" |
370 | 367 | ] |
371 | 368 | }, |
372 | | - "execution_count": 14, |
| 369 | + "execution_count": 13, |
373 | 370 | "metadata": {}, |
374 | 371 | "output_type": "execute_result" |
375 | 372 | }, |
|
429 | 426 | }, |
430 | 427 | { |
431 | 428 | "cell_type": "code", |
432 | | - "execution_count": 15, |
| 429 | + "execution_count": 14, |
433 | 430 | "metadata": {}, |
434 | 431 | "outputs": [ |
435 | 432 | { |
|
486 | 483 | }, |
487 | 484 | { |
488 | 485 | "cell_type": "code", |
489 | | - "execution_count": 16, |
| 486 | + "execution_count": 15, |
490 | 487 | "metadata": {}, |
491 | 488 | "outputs": [ |
492 | 489 | { |
|
512 | 509 | " 'Western Europe']" |
513 | 510 | ] |
514 | 511 | }, |
515 | | - "execution_count": 16, |
| 512 | + "execution_count": 15, |
516 | 513 | "metadata": {}, |
517 | 514 | "output_type": "execute_result" |
518 | 515 | } |
|
530 | 527 | }, |
531 | 528 | { |
532 | 529 | "cell_type": "code", |
533 | | - "execution_count": 17, |
| 530 | + "execution_count": 16, |
534 | 531 | "metadata": {}, |
535 | 532 | "outputs": [ |
536 | 533 | { |
|
581 | 578 | }, |
582 | 579 | { |
583 | 580 | "cell_type": "code", |
584 | | - "execution_count": 18, |
| 581 | + "execution_count": 17, |
585 | 582 | "metadata": {}, |
586 | 583 | "outputs": [ |
587 | 584 | { |
|
617 | 614 | }, |
618 | 615 | { |
619 | 616 | "cell_type": "code", |
620 | | - "execution_count": 19, |
| 617 | + "execution_count": 18, |
621 | 618 | "metadata": {}, |
622 | 619 | "outputs": [], |
623 | 620 | "source": [ |
|
631 | 628 | }, |
632 | 629 | { |
633 | 630 | "cell_type": "code", |
634 | | - "execution_count": 20, |
| 631 | + "execution_count": 19, |
635 | 632 | "metadata": {}, |
636 | 633 | "outputs": [ |
637 | 634 | { |
|
676 | 673 | }, |
677 | 674 | { |
678 | 675 | "cell_type": "code", |
679 | | - "execution_count": 21, |
| 676 | + "execution_count": 20, |
680 | 677 | "metadata": {}, |
681 | 678 | "outputs": [ |
682 | 679 | { |
|
697 | 694 | " - Section(OSNAP East, [(-44.0, 64.0), (-42.0, 60.5), (-31.0, 59.0), (-28.0, 58.25), (-15.0, 58.0), (-12.5, 57.5), (-9.5, 57.25), (-5.0, 56.75)])" |
698 | 695 | ] |
699 | 696 | }, |
700 | | - "execution_count": 21, |
| 697 | + "execution_count": 20, |
701 | 698 | "metadata": {}, |
702 | 699 | "output_type": "execute_result" |
703 | 700 | } |
|
719 | 716 | }, |
720 | 717 | { |
721 | 718 | "cell_type": "code", |
722 | | - "execution_count": 22, |
| 719 | + "execution_count": 21, |
723 | 720 | "metadata": {}, |
724 | 721 | "outputs": [], |
725 | 722 | "source": [ |
|
739 | 736 | }, |
740 | 737 | { |
741 | 738 | "cell_type": "code", |
742 | | - "execution_count": 23, |
| 739 | + "execution_count": 22, |
743 | 740 | "metadata": {}, |
744 | 741 | "outputs": [ |
745 | 742 | { |
|
0 commit comments