Skip to content

Commit da27a14

Browse files
Adding ERA5 wind
1 parent 0475d67 commit da27a14

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

parcels/_datasets/structured/circulation_models.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,50 @@
363363
),
364364
},
365365
),
366+
"ds_ERA5_wind": xr.Dataset(
367+
# ERA5 10m wind model dataset
368+
{
369+
"u10": (
370+
["time", "latitude", "longitude"],
371+
np.random.rand(T, Y, X, dtype="float32"),
372+
{
373+
"long_name": "10 metre U wind component",
374+
"units": "m s**-1",
375+
},
376+
),
377+
"v10": (
378+
["time", "latitude", "longitude"],
379+
np.random.rand(T, Y, X, dtype="float32"),
380+
{
381+
"long_name": "10 metre V wind component",
382+
"units": "m s**-1",
383+
},
384+
),
385+
},
386+
coords={
387+
"time": (
388+
["time"],
389+
TIME,
390+
{
391+
"long_name": "time",
392+
},
393+
),
394+
"latitude": (
395+
["latitude"],
396+
np.linspace(90, -90, Y), # Note: ERA5 uses latitudes from 90 to -90
397+
{
398+
"long_name": "latitude",
399+
"units": "degrees_north",
400+
},
401+
),
402+
"longitude": (
403+
["longitude"],
404+
np.linspace(0, 360, X, endpoint=False),
405+
{
406+
"long_name": "longitude",
407+
"units": "degrees_east",
408+
},
409+
),
410+
},
411+
),
366412
}

0 commit comments

Comments
 (0)