Skip to content

Commit 44f7a46

Browse files
Updating simple_UV_dataset to 2D topology
As suggested in the second "note" at https://sgrid.github.io/sgrid/#3d-grid
1 parent ddb2f55 commit 44f7a46

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/parcels/_datasets/structured/generated.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from parcels._core.utils.sgrid import (
77
DimDimPadding,
8-
Grid3DMetadata,
8+
Grid2DMetadata,
99
Padding,
1010
_attach_sgrid_metadata,
1111
)
@@ -29,15 +29,15 @@ def simple_UV_dataset(dims=(360, 2, 30, 4), maxdepth=1, mesh="spherical"):
2929
},
3030
).pipe(
3131
_attach_sgrid_metadata,
32-
Grid3DMetadata(
32+
Grid2DMetadata(
3333
cf_role="grid_topology",
34-
topology_dimension=3,
35-
node_dimensions=("XG", "YG", "depth"),
36-
volume_dimensions=(
34+
topology_dimension=2,
35+
node_dimensions=("XG", "YG"),
36+
face_dimensions=(
3737
DimDimPadding("XC", "XG", Padding.HIGH),
3838
DimDimPadding("YC", "YG", Padding.HIGH),
39-
DimDimPadding("depth", "depth", Padding.HIGH),
4039
),
40+
vertical_dimensions=(DimDimPadding("depth", "depth", Padding.NONE),),
4141
),
4242
)
4343

0 commit comments

Comments
 (0)