From 069653ecf53550344f12f44bc1e36de7215566af Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Fri, 11 Aug 2023 14:16:22 -0600 Subject: [PATCH] Run spellcheck over notebooks --- lessons/python/advection.ipynb | 4 ++-- lessons/python/diffusion.ipynb | 8 ++++---- lessons/python/functions.ipynb | 6 +++--- lessons/python/index.ipynb | 4 ++-- lessons/python/more_fundamentals.ipynb | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lessons/python/advection.ipynb b/lessons/python/advection.ipynb index 9e568b2..ed8b64b 100644 --- a/lessons/python/advection.ipynb +++ b/lessons/python/advection.ipynb @@ -36,7 +36,7 @@ "source": [ "## The advection equation\n", "\n", - "A concepturally very simple PDE is the Advection Equation: \n", + "A conceptually very simple PDE is the Advection Equation: \n", "\n", "$$\\frac{\\partial C}{\\partial t} = -v \\frac{\\partial C}{\\partial x}\n", "\\label{eq:1}\\tag{1}$$\n", @@ -44,7 +44,7 @@ "$$\\frac{\\partial C}{\\partial t} +v \\frac{\\partial C}{\\partial x}=0\n", "\\label{1b}$$\n", "\n", - "where $C$ is the aerosol concentration and $v$ is a constant windspeed at which aerosol concentrations are advected. The equation above is a prototype of an **initial value problem**: The solution is obtained by using the known initial values and marching or advancing in time. The solution of this equation can be obtained directly from the initial conditions:\n", + "where $C$ is the aerosol concentration and $v$ is a constant wind speed at which aerosol concentrations are advected. The equation above is a prototype of an **initial value problem**: The solution is obtained by using the known initial values and marching or advancing in time. The solution of this equation can be obtained directly from the initial conditions:\n", "\n", "$$ C(x,t) = C(x-vt,0) \\label{eq:2}\\tag{2}$$\n", "\n", diff --git a/lessons/python/diffusion.ipynb b/lessons/python/diffusion.ipynb index c97455b..0d726b3 100644 --- a/lessons/python/diffusion.ipynb +++ b/lessons/python/diffusion.ipynb @@ -323,7 +323,7 @@ " - $D = 100 \\: \\mathrm{(m^{2} s^{-1})}$\n", " - $\\Delta x = 0.1 \\: \\mathrm{m}$\n", "\n", - "2. Assumtions regarding the boundary conditions:\n", + "2. Assumptions regarding the boundary conditions:\n", " - $C(x=0) = 500 \\: \\mathrm{(mol \\: m^{-2})}$\n", " - $C(x=Lx) = 0 \\: \\mathrm{(mol \\: m^{-2})}$\n", " \n", @@ -375,7 +375,7 @@ "# - make a time loop\n", "for t in range(0, nt):\n", " # - in this loop, first calculate the flux by discretizing equation (1),\n", - " # try to use vectorized code (using numPy diff statement)\n", + " # try to use vectorized code (using NumPy diff statement)\n", " q = -D * np.diff(C) / dx\n", "\n", " # - Update the new concentration (Eq. 2, without changing the boundary values)\n", @@ -487,7 +487,7 @@ "\n", "\n", "\n", - "**Figure 5:** \"On March 2010 Eyjafjallajokull volcano in Iceland exploded into life, spewing lava, magma, rock and clouds of ash into the sky above it. The disaster grounded airlines, stranding holidaymakers and business passengers across Europe and North America. While many could only watch the crisis unfolding in hotels and airports, photographer Ragnar Th. Sigurdsson chose to fly into the epicentre on a mission to record one of nature's most deadly phenomena\" The Telegraph (c); Picture: RAGNAR TH. SIGURDSSON / BARCROFT \n", + "**Figure 5:** \"On March 2010 Eyjafjallajokull volcano in Iceland exploded into life, spewing lava, magma, rock and clouds of ash into the sky above it. The disaster grounded airlines, stranding holiday-makers and business passengers across Europe and North America. While many could only watch the crisis unfolding in hotels and airports, photographer Ragnar Th. Sigurdsson chose to fly into the epicentre on a mission to record one of nature's most deadly phenomena\" The Telegraph (c); Picture: RAGNAR TH. SIGURDSSON / BARCROFT \n", "\n", "**Exercise: 1D diffusion.**\n", "The Eyjafjallajökull volcano is located at the Southern Iceland coast and 2000 km from Brussels. Consider a one-dimensional case with a domain length of 5000 km. The volcano itself is situated at 2220 km from the left boundary of the simulation domain. Brussels is situated at 4220 km from the left boundary of the simulation domain. Choose a spatial resolution of 20 km. In the next couple of steps, you will calculate the time required to obtain a specific ash concentration above Brussels. \n", @@ -501,7 +501,7 @@ "Define the model parameters: \n", "- set the diffusivity to 25 km$^2$/h\n", "- define the model domain: total length is 5000 km, spatial resolution is 20 km\n", - "- calcualte the location (index in the np array) of the volcano and of Brussels and call the variables respectively `ind_vol` and `ind_Bru`\n", + "- calculate the location (index in the np array) of the volcano and of Brussels and call the variables respectively `ind_vol` and `ind_Bru`\n", "- Set the initial conditions (C): at the volcano the concentration is 100 ppm, over the rest of the domain the concentration is 0 ppm.\n", "- The Eyjafjallajökull volcano produced ashes almost continuously during a couple of weeks. Start from the initial condition above but now add 100 ppm ashes per hour to the volcano grid cell as a source term. \n", "- Assume Dirichlet boundary conditions (0 ppm at 0 km and 0 ppm at 3000 km)\n", diff --git a/lessons/python/functions.ipynb b/lessons/python/functions.ipynb index 14eb8db..be140b1 100644 --- a/lessons/python/functions.ipynb +++ b/lessons/python/functions.ipynb @@ -57,7 +57,7 @@ "metadata": {}, "source": [ "In the diffusion notebook,\n", - "we defined a timestep based on a stability criterion\n", + "we defined a time step based on a stability criterion\n", "for our numerical solution to the diffusion equation.\n", "\n", "Let's group this code into a function." @@ -328,7 +328,7 @@ "source": [ "In our new function `solve1d`,\n", "the arguments for the grid spacing, time step, and diffusivity take default values,\n", - "but `concenctration`, the argument for the diffused quantity, does not.\n", + "but `concentration`, the argument for the diffused quantity, does not.\n", "\n", "**Question:** Without looking at the body of the function,\n", "can you tell what variable type the `concentration` argument should be?\n", @@ -555,7 +555,7 @@ "source": [ "## Summary\n", "\n", - "The process of building larger programs from smaller functions is a key element of scientific programing.\n", + "The process of building larger programs from smaller functions is a key element of scientific programming.\n", "\n", "Information from the Python documentation, including the sections\n", "[Defining Functions](https://docs.python.org/3/tutorial/controlflow.html#defining-functions) and\n", diff --git a/lessons/python/index.ipynb b/lessons/python/index.ipynb index 2ec27fd..ffa4d44 100644 --- a/lessons/python/index.ipynb +++ b/lessons/python/index.ipynb @@ -58,13 +58,13 @@ "source": [ "## The 2010 Eyjafjallajökull volcano eruption\n", "\n", - "> On 14 April 2010 a subglacial explosive eruption started in Eyjafjallajökull, situated on the southcentral coast of Iceland. This was a medium‐size eruption but due to the explosive nature and the prevailing winds during that first week, the ash was advected southeastward into the crowded air space of the UK and continental Europe. This caused major disruptions of air traffic. Volcanic eruptions are not uncommon in Iceland but the Eyjafjallajökull eruption has shown different characteristics than usually expected. Instead of peaking during the first few days and then gradually decreasing, the eruption had an explosive phase 14–17 April with mainly tephra and ash production, and a phase of mainly lava production 18–30 April before becoming explosive again. This meant that a continuous reevaluation of the strength of the eruption and the production of tephra and ash was necessary. Because the winds carried the ash a short distance overland, only a small part of Iceland, about 3\\% , was badly affected by ash fall. However, the rural community in the vicinity of the volcano that experienced the worst ash fall is also facing problems with drifting ash.\n", + "> On 14 April 2010 a subglacial explosive eruption started in Eyjafjallajökull, situated on the south-central coast of Iceland. This was a medium‐size eruption but due to the explosive nature and the prevailing winds during that first week, the ash was advected southeastward into the crowded air space of the UK and continental Europe. This caused major disruptions of air traffic. Volcanic eruptions are not uncommon in Iceland but the Eyjafjallajökull eruption has shown different characteristics than usually expected. Instead of peaking during the first few days and then gradually decreasing, the eruption had an explosive phase 14–17 April with mainly tephra and ash production, and a phase of mainly lava production 18–30 April before becoming explosive again. This meant that a continuous reevaluation of the strength of the eruption and the production of tephra and ash was necessary. Because the winds carried the ash a short distance overland, only a small part of Iceland, about 3\\% , was badly affected by ash fall. However, the rural community in the vicinity of the volcano that experienced the worst ash fall is also facing problems with drifting ash.\n", ">\n", "> ---Guðrún Nína Petersen, Copyright © 2010 Royal Meteorological Society \n", "\n", "
\n", " \n", - "
On 14 April 2010, the Eyjafjallajökull volcano became one of the most famous volcanoes in the world causing major disruption to air traffic in northern Europe.
\n", + "
On 14 April 2010, the Eyjafjallajökull volcano became one of the most famous volcanos in the world causing major disruption to air traffic in northern Europe.
\n", "
\n", "\n", "If you want to learn more about this event, [this is a nice EOS article](https://eos.org/articles/eyjafjallajokul-gave-lava-and-ice-researchers-an-eyeful)." diff --git a/lessons/python/more_fundamentals.ipynb b/lessons/python/more_fundamentals.ipynb index 88e491b..6b48721 100644 --- a/lessons/python/more_fundamentals.ipynb +++ b/lessons/python/more_fundamentals.ipynb @@ -304,7 +304,7 @@ "id": "608ad422-8a80-481e-a7d2-344a05662e76", "metadata": {}, "source": [ - "If the conditional expression evalutes to `True`, execute the `if` clause;\n", + "If the conditional expression evaluates to `True`, execute the `if` clause;\n", "otherwise, execute the `else` clause." ] },