|
14 | 14 | "The plot(s) we will produce are simple plots which follow the trajectory of the expedition as a function of distance from the first waypoint, and are intended to be a starting point for your analysis. \n", |
15 | 15 | "\n", |
16 | 16 | "<div class=\"alert alert-block alert-info\"> \n", |
17 | | - "<b>NOTE:</b> This notebook assumes that each waypoint in the expedition is further from the start than the last waypoint. The code will still work if not, but the resultant plots might not be very intuitive.\n", |
| 17 | + "<b>Note:</b> This notebook assumes that each waypoint in the expedition is further from the start than the last waypoint. The code will still work if not, but the resultant plots might not be very intuitive.\n", |
18 | 18 | "</div>" |
19 | 19 | ] |
20 | 20 | }, |
|
25 | 25 | "source": [ |
26 | 26 | "## Set up\n", |
27 | 27 | "\n", |
| 28 | + "#### Imports\n", |
| 29 | + "\n", |
28 | 30 | "The first step is to import the Python packages required for post-processing the data and plotting. " |
29 | 31 | ] |
30 | 32 | }, |
|
48 | 50 | "id": "4f387780", |
49 | 51 | "metadata": {}, |
50 | 52 | "source": [ |
| 53 | + "\n", |
| 54 | + "#### Data directory\n", |
| 55 | + "\n", |
51 | 56 | "Next, you should set `data_dir` to be the path to your expedition results in the code block below. You should replace `\"/path/to/EXPEDITION/results/\"` with the path for your machine.\n", |
52 | 57 | "\n", |
53 | 58 | "<div class=\"alert alert-block alert-success\"> \n", |
|
70 | 75 | "id": "a499ebe2", |
71 | 76 | "metadata": {}, |
72 | 77 | "source": [ |
| 78 | + "#### Variable choice\n", |
| 79 | + "\n", |
73 | 80 | "You should now consider which variable from your CTD casts you would like to plot. Which ones are available to you will depend on whether you have used the `CTD` (physical variables) or `CTD_BGC` (biogeochemical) instrument, or both. Below is a list of all valid variable choices for both instruments...\n", |
74 | 81 | "\n", |
75 | 82 | "`CTD` (physical):\n", |
|
104 | 111 | "id": "a05fad14", |
105 | 112 | "metadata": {}, |
106 | 113 | "source": [ |
107 | | - "We also define the `VARIABLES` dictionary here, which we use to store some parameters for the plots (e.g. variable labels, what units each is in, and which colour map we should use for the plots).\n", |
| 114 | + "\n", |
| 115 | + "We also define the `VARIABLES` dictionary here, which we use to store some parameters for the plots related to each variable choice (e.g. labels, what units each is in, and which colour map we should use for the plots).\n", |
108 | 116 | "\n", |
109 | 117 | "<div class=\"alert alert-block alert-success\"> \n", |
110 | 118 | "<b>Tip:</b> You don't need to change anything here, but should you wish to change the colour scheme (`cmap`) for any CTD variable you can do so. At the moment it's set to use relevant cmaps from the cmocean Python package, which has developed specialist colour schemes for oceanographic data applications.\n", |
|
306 | 314 | "id": "2bdf98e6", |
307 | 315 | "metadata": {}, |
308 | 316 | "source": [ |
| 317 | + "\n", |
309 | 318 | "Now we will execute the utility functions, plus define some extra useful arrays to be used for the plotting..." |
310 | 319 | ] |
311 | 320 | }, |
|
409 | 418 | "We can also also plot a 'filled' version without the distance bins, to give an alternative view of the evolution across the transect which is not dominated by gaps and white space. This time we will also add a 'sea bed' to the plot.\n", |
410 | 419 | "\n", |
411 | 420 | "<div class=\"alert alert-block alert-info\"> \n", |
412 | | - "<b>NOTE:</b> It is important to always remember that the gaps do actually exist in reality and this is a caveat which must be considered when interpreting the transect derived from CTD casts. Indeed, if you look at the x-axis of the plot below you will see that the deployments are not necessarily regularly spaced and some gaps are larger than others.\n", |
| 421 | + "<b>Note:</b> It is important to remember that the gaps do actually exist in reality and this is a caveat which must be considered when interpreting the transect derived from CTD casts. Indeed, if you look at the x-axis of the plot below you will see that the deployments are not necessarily regularly spaced and some gaps are larger than others.\n", |
413 | 422 | "</div>" |
414 | 423 | ] |
415 | 424 | }, |
|
460 | 469 | "plt.colorbar(mesh, ax=ax, label=VARIABLES[plot_variable][\"label\"])\n", |
461 | 470 | "plt.tight_layout()" |
462 | 471 | ] |
463 | | - }, |
464 | | - { |
465 | | - "cell_type": "code", |
466 | | - "execution_count": null, |
467 | | - "id": "97e62cec", |
468 | | - "metadata": {}, |
469 | | - "outputs": [], |
470 | | - "source": [] |
471 | 472 | } |
472 | 473 | ], |
473 | 474 | "metadata": { |
|
0 commit comments