You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user_guide/examples/tutorial_interpolation.ipynb
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,11 @@
219
219
"1. `interp_method=parcels.interpolators.XLinear`: compute linear interpolation\n",
220
220
"2. `interp_method=parcels.interpolators.XLinearInvdistLandTracer`: compute linear interpolation except near land (where field value is zero). In that case, inverse distance weighting interpolation is computed, weighting by squares of the distance.\n",
221
221
"3. `interp_method=parcels.interpolators.XNearest`: return nearest field value\n",
222
-
"4. `interp_method=parcels.interpolators.CGridTracer`: return nearest field value supposing C cells\n"
222
+
"4. `interp_method=parcels.interpolators.CGridTracer`: return nearest field value supposing C cells\n",
223
+
"\n",
224
+
"In the special case where a `parcels.Field` is constant in time and space, such as implementing constant diffusion on a spherical mesh, we can use:\n",
225
+
"\n",
226
+
"5. `interp_method=parcels.interpolators.XConstantField`: return single value of a Constant Field"
223
227
]
224
228
},
225
229
{
@@ -231,6 +235,28 @@
231
235
"```"
232
236
]
233
237
},
238
+
{
239
+
"cell_type": "markdown",
240
+
"metadata": {},
241
+
"source": [
242
+
"## Interpolation on unstructured grids\n",
243
+
"```{note}\n",
244
+
"TODO: add example on simple unstructured fieldset\n",
245
+
"```\n",
246
+
"- UXPiecewiseConstantFace\n",
247
+
"- UXPiecewiseLinearNode"
248
+
]
249
+
},
250
+
{
251
+
"cell_type": "markdown",
252
+
"metadata": {},
253
+
"source": [
254
+
"## Interpolation at boundaries\n",
255
+
"In some cases we need to implement specific boundary conditions, for example to prevent particles from \n",
256
+
"getting \"stuck\" near land. [This guide](../examples_v3/documentation_unstuck_Agrid.ipynb) describes \n",
257
+
"how to implement this in parcels using `parcels.interpolators.XFreeslip` and `parcels.interpolators.XPartialslip`."
0 commit comments