|
6 | 6 | "metadata": {}, |
7 | 7 | "source": [ |
8 | 8 | "# Using `parcels.interpolators`\n", |
9 | | - "Parcels comes with a number of different interpolation methods for tracer fields, such as temperature. Here, we will look at a few common `parcels.interpolators` for structured (`X`) grids, and how to configure them in an idealised example. For more guidance on the sampling of such fields, check out the [sampling guide](./tutorial_sampling).\n", |
| 9 | + "Parcels comes with a number of different interpolation methods for tracer fields, such as temperature. Here, we will look at a few common `parcels.interpolators` for structured (`X`) grids, and how to configure them in an idealised example. For more guidance on the sampling of such fields, check out the [sampling tutorial](./tutorial_sampling).\n", |
10 | 10 | "\n", |
11 | 11 | "We first import the relevant modules" |
12 | 12 | ] |
|
29 | 29 | "cell_type": "markdown", |
30 | 30 | "metadata": {}, |
31 | 31 | "source": [ |
32 | | - "We create a small 2D structured grid where `P` is a tracer that we want to interpolate. In each grid cell, `P` has a random value between 0.1 and 1.1. We then set `P[1,1]` to `0`, which for Parcels specifies that this is a land cell\n" |
| 32 | + "We create a small 2D structured grid, where `P` is a tracer that we want to interpolate. In each grid cell, `P` has a random value between 0.1 and 1.1. We then set `P[1,1]` to `0`, which for Parcels specifies that this is a land cell\n" |
33 | 33 | ] |
34 | 34 | }, |
35 | 35 | { |
|
256 | 256 | "metadata": {}, |
257 | 257 | "source": [ |
258 | 258 | "## Interpolation at boundaries\n", |
259 | | - "In some cases we need to implement specific boundary conditions, for example to prevent particles from \n", |
| 259 | + "In some cases, we need to implement specific boundary conditions, for example to prevent particles from \n", |
260 | 260 | "getting \"stuck\" near land. [This guide](../examples_v3/documentation_unstuck_Agrid.ipynb) describes \n", |
261 | 261 | "how to implement this in parcels using `parcels.interpolators.XFreeslip` and `parcels.interpolators.XPartialslip`." |
262 | 262 | ] |
|
266 | 266 | "metadata": {}, |
267 | 267 | "source": [ |
268 | 268 | "## Write your own interpolator\n", |
269 | | - "The interpolators included in Parcels are designed for common interpolation schemes in Parcels simulations. If we want to add a custom interpolation method, we can write our own interpolator function (e.g. spline) using the [interpolator API](./explanation_interpolation.md#interpolator-api)." |
| 269 | + "The interpolators included in Parcels are designed for common interpolation schemes in Parcels simulations. If we want to add a custom interpolation method, we can write a custom function (e.g. spline) using the [interpolator API](./explanation_interpolation.md#interpolator-api)." |
270 | 270 | ] |
271 | 271 | } |
272 | 272 | ], |
|
0 commit comments