Skip to content

Commit d84f844

Browse files
Merge branch 'v4-dev' into using_fieldset_from_sgrid_in_tutorials
2 parents 1fcb075 + 2abecb1 commit d84f844

34 files changed

+948
-294
lines changed

docs/user_guide/examples/tutorial_interpolation.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"cell_type": "markdown",
6060
"metadata": {},
6161
"source": [
62-
"From this dataset we create a {py:obj}`parcels.FieldSet`. The default interpolator for fields on structured A-grid grids is (tri)linear interpolation, implemented in `parcels.interpolators.XLinear`."
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."
6363
]
6464
},
6565
{
@@ -68,9 +68,7 @@
6868
"metadata": {},
6969
"outputs": [],
7070
"source": [
71-
"fieldset = parcels.FieldSet.from_sgrid_conventions(ds, mesh=\"flat\")\n",
72-
"\n",
73-
"assert fieldset.P.interp_method == parcels.interpolators.XLinear"
71+
"fieldset = parcels.FieldSet.from_sgrid_conventions(ds, mesh=\"flat\")"
7472
]
7573
},
7674
{

docs/user_guide/examples/tutorial_nemo_curvilinear.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"outputs": [],
153153
"source": [
154154
"u, v = fieldset.UV.eval(\n",
155-
" np.array([0]), np.array([0]), np.array([20]), np.array([50]), applyConversion=False\n",
155+
" np.array([0]), np.array([0]), np.array([20]), np.array([50]), apply_conversion=False\n",
156156
") # do not convert m/s to deg/s\n",
157157
"print(f\"(u, v) = ({u[0]:.3f}, {v[0]:.3f})\")\n",
158158
"assert np.isclose(u, 1.0, atol=1e-3)"
@@ -298,7 +298,7 @@
298298
],
299299
"metadata": {
300300
"kernelspec": {
301-
"display_name": "test-notebooks",
301+
"display_name": "default",
302302
"language": "python",
303303
"name": "python3"
304304
},
@@ -312,7 +312,7 @@
312312
"name": "python",
313313
"nbconvert_exporter": "python",
314314
"pygments_lexer": "ipython3",
315-
"version": "3.11.0"
315+
"version": "3.14.2"
316316
}
317317
},
318318
"nbformat": 4,

0 commit comments

Comments
 (0)