Skip to content

Commit 590bbe4

Browse files
reint-fischerreint-fischer
authored andcommitted
fix suggestions from review and add emojis to notebook titles
1 parent 7c8c221 commit 590bbe4

21 files changed

Lines changed: 34 additions & 2644 deletions

docs/_static/concepts_diagram.png

426 KB
Loading

docs/_static/concepts_diagram.svg

Lines changed: 0 additions & 2170 deletions
This file was deleted.

docs/getting_started/explanation_concepts.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kernelspec:
44
name: python3
55
---
66

7-
# Parcels concepts
7+
# 📖 Parcels conceptual workflow
88

99
Parcels is a set of Python classes and methods to create customisable particle tracking simulations using gridded output from (ocean) circulation models.
1010

@@ -19,7 +19,7 @@ A Parcels simulation is generally built up from four different components:
1919

2020
We discuss each component in more detail below. The subsections titled **"Learn how to"** link to more detailed [how-to guide notebooks](../user_guide/index.md) and more detailed _explanations_ of Parcels functionality are included under **"Read more about"** subsections. The full list of classes and methods is in the [API reference](../reference.md). If you want to learn by doing, check out the [quickstart tutorial](./tutorial_quickstart.md) to start creating your first Parcels simulation.
2121

22-
```{figure} ../_static/concepts_diagram.svg
22+
```{figure} ../_static/concepts_diagram.png
2323
:alt: Parcels concepts diagram
2424
:width: 100%
2525
@@ -63,11 +63,11 @@ Each `parcels.Field` is defined on a grid. With Parcels, we can simulate particl
6363

6464
To find the value of a `parcels.Field` at any particle location, Parcels interpolates the gridded field. Depending on the variable, grid, and required accuracy, different interpolation methods may be appropriate. Parcels comes with a number of built-in **`parcels.interpolators`**.
6565

66-
### Read more about interpolation
66+
#### Read more about interpolation
6767

6868
- [Interpolation explanation](../user_guide/examples/explanation_interpolation.md)
6969

70-
### Learn how to use Parcels interpolators
70+
#### Learn how to use Parcels interpolators
7171

7272
- [Interpolators guide](../user_guide/examples/tutorial_interpolation.ipynb)
7373

@@ -86,7 +86,7 @@ lat = np.array([0])
8686
lon = np.array([0])
8787

8888
# Create a ParticleSet
89-
pset = parcels.ParticleSet(fieldset, parcels.Particle, time, z, lat, lon)
89+
pset = parcels.ParticleSet(fieldset=fieldset, pclass=parcels.Particle, time=time, z=z, lat=lat, lon=lon)
9090
```
9191

9292
### Learn more about how to create ParticleSets
@@ -129,7 +129,7 @@ We can write custom kernels to add many different types of 'behaviour' to the pa
129129
```python
130130
# Create a custom Particle object with an "age" variable
131131
CustomParticle = parcels.Particle.add_variable(
132-
parcels.Variable("age", initial=np.nan)
132+
parcels.Variable("age", initial=0)
133133
)
134134

135135
# Create a custom kernel which keeps track of the particle age
@@ -169,11 +169,11 @@ The execution of the simulation is done using the method **`parcels.ParticleSet.
169169
4. (Optional) The `ParticleFile` object to write the output to.
170170

171171
```python
172-
runtime = np.timedelta64(1, "D")
173172
dt = np.timedelta64(5, "m")
173+
runtime = np.timedelta64(1, "D")
174174

175175
# Run the simulation
176-
pset.execute(kernels, runtime, dt)
176+
pset.execute(pyfunc=kernels, dt=dt, runtime=runtime)
177177
```
178178

179179
### Output
@@ -184,5 +184,5 @@ There are many ways to analyze particle output, and although we provide [a short
184184

185185
#### Learn how to run a simulation
186186

187-
- [Choose an appropriate timestep](../user_guide/examples/tutorial_numerical_accuracy.ipynb)
187+
- [Choose an appropriate timestep and integrator](../user_guide/examples/tutorial_numerical_accuracy.ipynb)
188188
- [Work with Parcels output](./tutorial_output.ipynb)

docs/getting_started/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Getting started with parcels is easy; here you will find:
55
```{toctree}
66
:maxdepth: 1
77
Installation guide <installation.md>
8-
Quickstart tutorial <tutorial_quickstart.md>
9-
Output tutorial <tutorial_output.ipynb>
10-
Concepts explanation <explanation_concepts.md>
8+
🎓 Quickstart tutorial <tutorial_quickstart.md>
9+
🎓 Output tutorial <tutorial_output.ipynb>
10+
📖 Conceptual workflow <explanation_concepts.md>
1111
```
1212

1313
```{note}

docs/getting_started/tutorial_output.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"cell_type": "markdown",
66
"metadata": {},
77
"source": [
8-
"# Working with Parcels output\n"
8+
"# 🎓 Working with Parcels output"
99
]
1010
},
1111
{

docs/getting_started/tutorial_quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kernelspec:
44
name: python3
55
---
66

7-
# Quickstart tutorial
7+
# 🎓 Quickstart tutorial
88

99
Welcome to the **Parcels** quickstart tutorial, in which we will go through all the necessary steps to run a simulation.
1010
The code in this notebook can be used as a starting point to run Parcels in your own environment. Along the way we will

docs/user_guide/examples/explanation_grids.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Grids
1+
# 📖 Grids
22

33
Parcels `Field` objects exist on a (structured) `parcels.XGrid` or (unstructured) `parcels.Uxgrid`. Here we describe these grids on a conceptual level.
44

docs/user_guide/examples/explanation_interpolation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Interpolators
1+
# 📖 Interpolators Overview and API
22

33
Interpolation is an important functionality of Parcels. On this page we will discuss the way it is
44
implemented in **Parcels** and how to write a custom interpolator function.

docs/user_guide/examples/explanation_kernelloop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kernelspec:
44
name: python3
55
---
66

7-
# The Parcels Kernel loop
7+
# 📖 The Parcels Kernel loop
88

99
On this page we discuss Parcels' execution loop, and what happens under the hood when you combine multiple Kernels.
1010

docs/user_guide/examples/tutorial_Argofloats.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"cell_type": "markdown",
66
"metadata": {},
77
"source": [
8-
"# Mimicking an Argo float"
8+
"# 🖥️ Mimicking an Argo float"
99
]
1010
},
1111
{

0 commit comments

Comments
 (0)