Skip to content

Commit 88e6f22

Browse files
committed
Making grammar consistent
1 parent 4641b8b commit 88e6f22

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

docs/examples/parcels_tutorial.ipynb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"cell_type": "markdown",
2222
"metadata": {},
2323
"source": [
24-
"In this tutorial, we will first cover how to run a set of particles [from a very simple idealised field](#Running-particles-in-an-idealised-field). We will show how easy it is to run particles in [time-backward mode](#Running-particles-in-backward-time). Then, we will show how to [add custom behaviour](#Adding-a-custom-behaviour-kernel) to the particles. Then we will show how to [run particles in a set of NetCDF files from external data](#Reading-in-data-from-arbritrary-NetCDF-files). Then we will show how to use particles to [sample a field](#Sampling-a-Field-with-Particles) such as temperature or sea surface height. And finally, we will show how to [write a kernel that tracks the distance travelled by the particles](#calculating-distance-travelled).\n"
24+
"In this tutorial, we will first cover how to run a set of particles [from a very simple idealised field](#Running-particles-in-an-idealised-field). We will show how easy it is to run particles in [time-backward mode](#Running-particles-in-backward-time). Then, we will show how to [add custom behaviour](#Adding-a-custom-behaviour-kernel) to the particles. Then, we will show how to [run particles in a set of NetCDF files from external data](#Reading-in-data-from-arbritrary-NetCDF-files). Then, we will show how to use particles to [sample a field](#Sampling-a-Field-with-Particles) such as temperature or sea surface height. And finally, we will show how to [write a kernel that tracks the distance travelled by the particles](#calculating-distance-travelled).\n"
2525
]
2626
},
2727
{
@@ -147,7 +147,7 @@
147147
"cell_type": "markdown",
148148
"metadata": {},
149149
"source": [
150-
"Print the `ParticleSet` to see where they start\n"
150+
"Print the `ParticleSet` to see where they start.\n"
151151
]
152152
},
153153
{
@@ -181,7 +181,7 @@
181181
"cell_type": "markdown",
182182
"metadata": {},
183183
"source": [
184-
"To plot the positions of these particles on the zonal velocity, use the following command\n"
184+
"To plot the positions of these particles on the zonal velocity, use the following command.\n"
185185
]
186186
},
187187
{
@@ -250,7 +250,7 @@
250250
"cell_type": "markdown",
251251
"metadata": {},
252252
"source": [
253-
"The code should have run, which can be confirmed by printing and plotting the `ParticleSet` again\n"
253+
"The code should have run, which can be confirmed by printing and plotting the `ParticleSet` again.\n"
254254
]
255255
},
256256
{
@@ -13223,7 +13223,7 @@
1322313223
"cell_type": "markdown",
1322413224
"metadata": {},
1322513225
"source": [
13226-
"Now print the particles again, and see that they (except for some round-off errors) returned to their original position\n"
13226+
"Now print the particles again, and see that they (except for some round-off errors) returned to their original position.\n"
1322713227
]
1322813228
},
1322913229
{
@@ -13348,7 +13348,7 @@
1334813348
"cell_type": "markdown",
1334913349
"metadata": {},
1335013350
"source": [
13351-
"And now plot this new trajectory file\n"
13351+
"And now plot this new trajectory file.\n"
1335213352
]
1335313353
},
1335413354
{
@@ -13407,7 +13407,7 @@
1340713407
"cell_type": "markdown",
1340813408
"metadata": {},
1340913409
"source": [
13410-
"First, define the names of the files containing the zonal (U) and meridional (V) velocities. You can use wildcards (`*`) and the filenames for U and V can be the same (as in this case)\n"
13410+
"First, define the names of the files containing the zonal (U) and meridional (V) velocities. You can use wildcards (`*`) and the filenames for U and V can be the same (as in this case).\n"
1341113411
]
1341213412
},
1341313413
{
@@ -13429,7 +13429,7 @@
1342913429
"cell_type": "markdown",
1343013430
"metadata": {},
1343113431
"source": [
13432-
"Then, define a dictionary of the variables (`U` and `V`) and dimensions (`lon`, `lat` and `time`; note that in this case there is no `depth` because the GlobCurrent data is only for the surface of the ocean)\n"
13432+
"Then, define a dictionary of the variables (`U` and `V`) and dimensions (`lon`, `lat` and `time`; note that in this case there is no `depth` because the GlobCurrent data is only for the surface of the ocean).\n"
1343313433
]
1343413434
},
1343513435
{
@@ -13450,7 +13450,7 @@
1345013450
"cell_type": "markdown",
1345113451
"metadata": {},
1345213452
"source": [
13453-
"Finally, read in the fieldset using the `FieldSet.from_netcdf` function with the above-defined `filenames`, `variables` and `dimensions`\n"
13453+
"Finally, read in the fieldset using the `FieldSet.from_netcdf` function with the above-defined `filenames`, `variables` and `dimensions`.\n"
1345413454
]
1345513455
},
1345613456
{
@@ -13467,7 +13467,7 @@
1346713467
"cell_type": "markdown",
1346813468
"metadata": {},
1346913469
"source": [
13470-
"Now define a `ParticleSet`, in this case with 5 particle starting on a line between (28E, 33S) and (30E, 33S) using the `ParticleSet.from_line` constructor method\n"
13470+
"Now define a `ParticleSet`, in this case with 5 particle starting on a line between (28E, 33S) and (30E, 33S) using the `ParticleSet.from_line` constructor method.\n"
1347113471
]
1347213472
},
1347313473
{
@@ -13490,7 +13490,7 @@
1349013490
"cell_type": "markdown",
1349113491
"metadata": {},
1349213492
"source": [
13493-
"And finally execute the `ParticleSet` for 10 days using 4th order Runge-Kutta\n"
13493+
"And finally execute the `ParticleSet` for 10 days using 4th order Runge-Kutta.\n"
1349413494
]
1349513495
},
1349613496
{
@@ -13524,7 +13524,7 @@
1352413524
"cell_type": "markdown",
1352513525
"metadata": {},
1352613526
"source": [
13527-
"Because the GlobCurrent data represents the 'real' ocean, we can use the [trajan](https://opendrift.github.io/trajan/index.html) package to visualize this simulation. Use `ds.traj.plot()` to plot the trajectories\n"
13527+
"Because the GlobCurrent data represents the 'real' ocean, we can use the [trajan](https://opendrift.github.io/trajan/index.html) package to visualize this simulation. Use `ds.traj.plot()` to plot the trajectories.\n"
1352813528
]
1352913529
},
1353013530
{
@@ -13622,7 +13622,7 @@
1362213622
"cell_type": "markdown",
1362313623
"metadata": {},
1362413624
"source": [
13625-
"Now define a `ParticleSet` using the `from_line` method also used above in the GlobCurrent data. Plot the `pset` on top of a contour plot of the `P` field\n"
13625+
"Now define a `ParticleSet` using the `from_line` method also used above in the GlobCurrent data. Plot the `pset` on top of a contour plot of the `P` field.\n"
1362613626
]
1362713627
},
1362813628
{
@@ -13684,7 +13684,7 @@
1368413684
"cell_type": "markdown",
1368513685
"metadata": {},
1368613686
"source": [
13687-
"Now, execute the `pset` with a combination of the `AdvectionRK4` and `SampleP` kernels\n"
13687+
"Now, execute the `pset` with a combination of the `AdvectionRK4` and `SampleP` kernels.\n"
1368813688
]
1368913689
},
1369013690
{
@@ -13800,7 +13800,7 @@
1380013800
"cell_type": "markdown",
1380113801
"metadata": {},
1380213802
"source": [
13803-
"Now define a new function `TotalDistance` that calculates the sum of Euclidean distances between the old and new locations in each RK4 step\n"
13803+
"Now define a new function `TotalDistance` that calculates the sum of Euclidean distances between the old and new locations in each RK4 step.\n"
1380413804
]
1380513805
},
1380613806
{
@@ -13902,7 +13902,7 @@
1390213902
"cell_type": "markdown",
1390313903
"metadata": {},
1390413904
"source": [
13905-
"And finally print the distance in km that each particle has travelled (note that this is also stored in the `EddyParticles_Dist.zarr` file)\n"
13905+
"And finally print the distance in km that each particle has travelled (note that this is also stored in the `EddyParticles_Dist.zarr` file).\n"
1390613906
]
1390713907
},
1390813908
{

0 commit comments

Comments
 (0)