Skip to content

Commit 45bbb95

Browse files
reint-fischerreint-fischer
authored andcommitted
edit output animation and link to Vesnas tutorial
1 parent 720f79f commit 45bbb95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/examples/tutorial_output.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"source": [
107107
"pset.execute(\n",
108108
" parcels.kernels.AdvectionRK4,\n",
109-
" runtime=np.timedelta64(24, \"h\"),\n",
109+
" runtime=np.timedelta64(48, \"h\"),\n",
110110
" dt=np.timedelta64(5, \"m\"),\n",
111111
" output_file=output_file,\n",
112112
")"
@@ -363,7 +363,7 @@
363363
"cell_type": "markdown",
364364
"metadata": {},
365365
"source": [
366-
"Trajectory plots like the ones above can become very cluttered for large sets of particles. To better see patterns, it's a good idea to create an animation in time and space. To do this, matplotlib offers an [animation package](https://matplotlib.org/stable/api/animation_api.html). Here we show how to use the [**FuncAnimation**](https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.animation.FuncAnimation.html#matplotlib.animation.FuncAnimation) class to animate parcels trajectory data.\n",
366+
"Trajectory plots like the ones above can become very cluttered for large sets of particles. To better see patterns, it's a good idea to create an animation in time and space. To do this, matplotlib offers an [animation package](https://matplotlib.org/stable/api/animation_api.html). Here we show how to use the [**FuncAnimation**](https://matplotlib.org/3.3.2/api/_as_gen/matplotlib.animation.FuncAnimation.html#matplotlib.animation.FuncAnimation) class to animate parcels trajectory data, based on [this visualisation tutorial](https://github.com/Parcels-code/10year-anniversary-session5/blob/eaf7ac35f43c222280fa5577858be81dc346c06b/animations_tutorial.ipynb) from 10-years Parcels. \n",
367367
"\n",
368368
"To correctly reveal the patterns in time we must remember that the `obs` dimension does not necessarily correspond to the `time` variable ([see the section of Trajectory data structure above](#Trajectory-data-structure)). In the animation of the particles, we usually want to draw the points at each consecutive moment in time, not necessarily at each moment since the start of the trajectory. To do this we must [select the correct data](#Conditional-selection) in each rendering.\n"
369369
]
@@ -396,7 +396,7 @@
396396
"outputs": [],
397397
"source": [
398398
"# Number of timesteps to animate\n",
399-
"nframes = 13 # use less frames for testing purposes\n",
399+
"nframes = 25 # use less frames for testing purposes\n",
400400
"nreducedtrails = 1 # every 10th particle will have a trail (if 1, all particles have trails. Adjust for faster performance)\n",
401401
"\n",
402402
"\n",

0 commit comments

Comments
 (0)