Skip to content

Commit 1705a3b

Browse files
Adding MOI U dataset
1 parent aa01465 commit 1705a3b

1 file changed

Lines changed: 105 additions & 0 deletions

File tree

parcels/_datasets/structured/circulation_models.py

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,109 @@
8686
),
8787
},
8888
),
89+
"ds_NEMO_MOI_U": xr.Dataset(
90+
# NEMO model dataset (U component) as serviced by Mercator Ocean International
91+
{
92+
"vozocrtx": (
93+
["deptht", "y", "x"],
94+
np.random.rand(Z, Y, X, dtype="float64"),
95+
{
96+
"units": "m s-1",
97+
"valid_min": -10.0,
98+
"valid_max": 10.0,
99+
"long_name": "Zonal velocity",
100+
"unit_long": "Meters per second",
101+
"standard_name": "sea_water_x_velocity",
102+
"short_name": "vozocrtx",
103+
"online_operation": "N/A",
104+
"interval_operation": 86400,
105+
"interval_write": 86400,
106+
"associate": "time_counter deptht nav_lat nav_lon",
107+
},
108+
),
109+
"sotkeavmu1": (
110+
["y", "x"],
111+
np.random.rand(Y, X, dtype="float64"),
112+
{
113+
"units": "m2 s-1",
114+
"valid_min": 0.0,
115+
"valid_max": 100.0,
116+
"long_name": "Vertical Eddy Viscosity U 1m",
117+
"standard_name": "ocean_vertical_eddy_viscosity_u_1m",
118+
"short_name": "sotkeavmu1",
119+
"online_operation": "N/A",
120+
"interval_operation": 86400,
121+
"interval_write": 86400,
122+
"associate": "time_counter nav_lat nav_lon",
123+
},
124+
),
125+
},
126+
coords={
127+
"nav_lon": (
128+
["y, x"],
129+
np.tile(np.linspace(-179, 179, X, endpoint=False), (Y, 1)), # note that this is not curvilinear
130+
{
131+
"units": "degrees_east",
132+
"valid_min": -179.99984754002182,
133+
"valid_max": 179.999842386314,
134+
"long_name": "Longitude",
135+
"nav_model": "Default grid",
136+
"standard_name": "longitude",
137+
},
138+
),
139+
"nav_lat": (
140+
["y, x"],
141+
np.tile(np.linspace(-75, 85, Y).reshape(-1, 1), (1, X)), # note that this is not curvilinear
142+
{
143+
"units": "degrees_north",
144+
"valid_min": -77.0104751586914,
145+
"valid_max": 89.9591064453125,
146+
"long_name": "Latitude",
147+
"nav_model": "Default grid",
148+
"standard_name": "latitude",
149+
},
150+
),
151+
"x": (
152+
["x"],
153+
np.arange(X, dtype="int32"),
154+
{
155+
"standard_name": "projection_x_coordinate",
156+
"axis": "X",
157+
"units": "1",
158+
},
159+
),
160+
"y": (
161+
["y"],
162+
np.arange(Y, dtype="int32"),
163+
{
164+
"standard_name": "projection_y_coordinate",
165+
"axis": "Y",
166+
"units": "1",
167+
},
168+
),
169+
"time_counter": (
170+
[],
171+
np.empty(0, dtype="datetime64[ns]"),
172+
{
173+
"standard_name": "time",
174+
"long_name": "Time axis",
175+
"axis": "T",
176+
"time_origin": "1950-JAN-01 00:00:00",
177+
},
178+
),
179+
"deptht": (
180+
["deptht"],
181+
np.linspace(1, 5500, Z, dtype="float64"),
182+
{
183+
"units": "m",
184+
"positive": "down",
185+
"valid_min": 0.4940253794193268,
186+
"valid_max": 5727.91650390625,
187+
"long_name": "Vertical T levels",
188+
"standard_name": "depth",
189+
"axis": "Z",
190+
},
191+
),
192+
},
193+
),
89194
}

0 commit comments

Comments
 (0)