Skip to content

Commit ea3b58c

Browse files
committed
add example_expedition tutorial
1 parent 5503091 commit ea3b58c

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"user-guide/tutorials/surf_collaborative_setup": "user-guide/_images/freepik_research_vessel.jpg",
8484
"user-guide/tutorials/surf_research_cloud_setup": "user-guide/_images/freepik_research_vessel.jpg",
8585
"user-guide/tutorials/working_with_expedition_yaml": "user-guide/_images/AnnaWeber.jpeg",
86+
"user-guide/teacher-content/UU-dyoc/example_expedition": "user-guide/_images/AnnaWeber.jpeg",
8687
}
8788

8889
sphinx_gallery_conf = {"default_thumb_file": "_static/virtual_ship_logo.png"}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# VirtualShip Example Expedition
2+
3+
In this guide we will conduct an example virtual expedition. This expedition is not intended to be an in-depth tutorial on how to use all features of VirtualShip, but rather a general overview of the main steps of running the code itself, in preparation for your own expeditions. You will become more familiar with the SURF virtual environment, the command line interface and VirtualShip configuration files.
4+
5+
---
6+
7+
```{important}
8+
This guide assumes you have already logged into and set up (initialised conda) the SURF virtual environment.
9+
```
10+
11+
## 1) Create a new directory for your VirtualShip expeditions
12+
13+
First, you should navigate to the shared storage directory on the virtual machine (e.g. `cd data/virtualship_storage/`) and create a new directory for your group's VirtualShip expeditions (e.g. `mkdir {group_name}`, replacing `{group_name}` with your actual group name). This is where you will run your expeditions and store the results.
14+
15+
## 2) Expedition initialisation
16+
17+
```{note}
18+
For your real expeditions, there will be a more involved expedition planning stage before this, including route planning and scheduling. Here, we are just going to use the default VirtualShip example expedition route and schedule.
19+
```
20+
21+
You should now navigate to your group's directory (i.e. `cd data/virtualship_storage/{group_name}/`). Then run the following command in the terminal:
22+
23+
```
24+
virtualship init EXPEDITION_NAME
25+
```
26+
27+
This will create an expedition folder/directory called `EXPEDITION_NAME` (or change the name as desired) with a single file: `expedition.yaml` containing details on the ship and instrument configurations, as well as an _example_ expedition route and schedule.
28+
29+
## 3) Expedition planning and the `expedition.yaml` file
30+
31+
```{important}
32+
For the purposes of this example expedition, you do not need to make any _edits_ to the `expedition.yaml`! This section is just to introduce you to the file and its purpose.
33+
```
34+
35+
Navigate to the `expedition.yaml` file and open it in the (Jupyter Lab) text editor. This is where the configuration of your expedition is stored and where you can make changes to the expedition route, schedule and ship/instrument configurations.
36+
37+
You will see that the default is a basic route comprised of five waypoints on or near the equator, chosen for no particular scientific reason but just as an example, with deployment of a variety of different instruments (CTDs, Argo floats, Drifters etc.).
38+
39+
```{tip}
40+
See [here](../../tutorials/working_with_expedition_yaml.md) for more detail on the `expedition.yaml`: what it is, how to edit it, and how to ultimately use it to configure your own expeditions.
41+
```
42+
43+
Alternatively, you can view and edit the `expedition.yaml` file using the command:
44+
45+
```
46+
virtualship plan EXPEDITION_NAME
47+
```
48+
49+
This will launch a planning tool with an intuitive user interface to make changes to the expedition schedule and instrument selection. Changes made in the planning tool will be automatically saved to the `expedition.yaml` file.
50+
51+
For long and complex expeditions, it is often easier to edit the `expedition.yaml` file directly, but the planning tool can be useful for smaller expeditions, quick checks, or for small edits to the schedule and instrument selection.
52+
53+
## 4) Run the expedition
54+
55+
You are now ready to run your example expedition! This stage will simulate the measurements taken by the instruments selected at each waypoint in your expedition schedule, using input data sourced from the [Copernicus Marine Data Store](https://data.marine.copernicus.eu/products).
56+
57+
You will need to register for Copernicus Marine Service account (see [here](https://data.marine.copernicus.eu/register)), but the data access in VirtualShip will be automated.
58+
59+
You can run your expedition simulation using the command:
60+
61+
```
62+
virtualship run EXPEDITION_NAME
63+
```
64+
65+
If this is your first time running VirtualShip, you will be prompted to enter your own Copernicus Marine Data Store credentials (these will be saved automatically for future use).
66+
67+
For the example expedition, you can expect the simulation to take approximately 20 minutes, but this can vary depending on different factors including the machine set-up, system performance, and internet connection. Waiting for simulation is a great time to practice your level of patience. A skill much needed in oceanographic fieldwork ;-)
68+
69+
Why not browse through previous real-life [blogs and expedition reports](https://virtualship.readthedocs.io/en/latest/user-guide/assignments/Sail_the_ship.html#Reporting) in the meantime?!
70+
71+
## 5) Results
72+
73+
Upon successfully completing the simulation, results from the expedition will be stored in the `EXPEDITION_NAME/results` directory, written as [Zarr](https://zarr.dev/) files.
74+
75+
From here you will be able to carry on your analysis. We won't go into this here for the example expedition, but when it comes to your own expeditions, you will be expected to analyse, derive quantities and visualise your results, and to ultimately present your findings.

docs/user-guide/teacher-content/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ UU-ocean-of-future/Tutorial2.ipynb
3434
UU-ocean-of-future/CTD_transects.ipynb
3535
UU-ocean-of-future/plot_slider.py
3636
```
37+
38+
```{nbgallery}
39+
---
40+
caption: UU Dynamical Oceanography
41+
---
42+
UU-dyoc/example_expedition.md
43+
```

0 commit comments

Comments
 (0)