Skip to content

Commit 87bb34b

Browse files
Adding metadata for variables in copernicusmarine
1 parent a1c73fd commit 87bb34b

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

parcels/_datasets/structured/circulation_models.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,30 @@
1414
"ds_copernicusmarine": xr.Dataset(
1515
# Copernicus Marine Service dataset as retrieved by the `copernicusmarine` toolkit
1616
{
17-
"uo": (["depth", "latitude", "longitude", "time"], np.random.rand(T, Z, Y, X)),
18-
"vo": (["depth", "latitude", "longitude", "time"], np.random.rand(T, Z, Y, X)),
17+
"uo": (
18+
["depth", "latitude", "longitude", "time"],
19+
np.random.rand(T, Z, Y, X),
20+
{
21+
"valid_max": 5.0,
22+
"unit_long": "Meters per second",
23+
"units": "m s-1",
24+
"long_name": "Eastward velocity",
25+
"standard_name": "eastward_sea_water_velocity",
26+
"valid_min": -5.0,
27+
},
28+
),
29+
"vo": (
30+
["depth", "latitude", "longitude", "time"],
31+
np.random.rand(T, Z, Y, X),
32+
{
33+
"valid_max": 5.0,
34+
"unit_long": "Meters per second",
35+
"units": "m s-1",
36+
"long_name": "Northward velocity",
37+
"standard_name": "northward_sea_water_velocity",
38+
"valid_min": -5.0,
39+
},
40+
),
1941
},
2042
coords={
2143
"depth": (

0 commit comments

Comments
 (0)