Skip to content

Commit c60a40e

Browse files
Updating explanation in interpolation tutorial
1 parent d84f844 commit c60a40e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/user_guide/examples/tutorial_interpolation.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
"cell_type": "markdown",
6060
"metadata": {},
6161
"source": [
62-
"From this dataset we create a {py:obj}`parcels.FieldSet` using the {py:meth}`parcels.FieldSet.from_sgrid_conventions` constructor, which automatically sets up the grid and fields according to Parcels' s-grid conventions."
62+
"From this dataset we create a {py:obj}`parcels.FieldSet` using the {py:meth}`parcels.FieldSet.from_sgrid_conventions` constructor, which automatically sets up the grid and fields according to Parcels' s-grid conventions.\n",
63+
"\n",
64+
"The default interpolator for fields on structured A-grid grids is (tri)linear interpolation, implemented in `parcels.interpolators.XLinear`."
6365
]
6466
},
6567
{
@@ -68,7 +70,9 @@
6870
"metadata": {},
6971
"outputs": [],
7072
"source": [
71-
"fieldset = parcels.FieldSet.from_sgrid_conventions(ds, mesh=\"flat\")"
73+
"fieldset = parcels.FieldSet.from_sgrid_conventions(ds, mesh=\"flat\")\n",
74+
"\n",
75+
"assert fieldset.P.interp_method == parcels.interpolators.XLinear"
7276
]
7377
},
7478
{

0 commit comments

Comments
 (0)