Skip to content

Commit a1c73fd

Browse files
adding metadata to copernicusmarine coordinates
1 parent 0f3782e commit a1c73fd

1 file changed

Lines changed: 44 additions & 4 deletions

File tree

parcels/_datasets/structured/circulation_models.py

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,50 @@
1818
"vo": (["depth", "latitude", "longitude", "time"], np.random.rand(T, Z, Y, X)),
1919
},
2020
coords={
21-
"depth": (["depth"], np.linspace(0.49, 5727.92, Z), {"axis": "Z"}),
22-
"latitude": (["latitude"], np.linspace(-90, 90, Y), {"axis": "Y"}),
23-
"longitude": (["longitude"], np.linspace(-180, 180, X), {"axis": "X"}),
24-
"time": (["time"], TIME, {"axis": "T"}),
21+
"depth": (
22+
["depth"],
23+
np.linspace(0.49, 5727.92, Z),
24+
{
25+
"unit_long": "Meters",
26+
"units": "m",
27+
"axis": "Z",
28+
"long_name": "depth",
29+
"standard_name": "depth",
30+
"positive": "down",
31+
},
32+
),
33+
"latitude": (
34+
["latitude"],
35+
np.linspace(-90, 90, Y),
36+
{
37+
"unit_long": "Degrees North",
38+
"units": "degrees_north",
39+
"axis": "Y",
40+
"long_name": "Latitude",
41+
"standard_name": "latitude",
42+
},
43+
),
44+
"longitude": (
45+
["longitude"],
46+
np.linspace(-180, 180, X),
47+
{
48+
"unit_long": "Degrees East",
49+
"units": "degrees_east",
50+
"axis": "X",
51+
"long_name": "Longitude",
52+
"standard_name": "longitude",
53+
},
54+
),
55+
"time": (
56+
["time"],
57+
TIME,
58+
{
59+
"unit_long": "Hours Since 1950-01-01",
60+
"axis": "T",
61+
"long_name": "Time",
62+
"standard_name": "time",
63+
},
64+
),
2565
},
2666
),
2767
}

0 commit comments

Comments
 (0)