Skip to content

Commit 8ae28d7

Browse files
Adding Hycom dataset
1 parent 1bb5794 commit 8ae28d7

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

parcels/_datasets/structured/circulation_models.py

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,83 @@
458458
),
459459
},
460460
),
461+
"ds_hycom_espc": xr.Dataset(
462+
# HYCOM ESPC model dataset from https://data.hycom.org/datasets/ESPC-D-V02/data/daily_netcdf/2025/
463+
{
464+
"water_u": (
465+
["time", "depth", "lat", "lon"],
466+
np.random.rand(T, Z, Y, X, dtype="float32"),
467+
{
468+
"long_name": "Eastward Water Velocity",
469+
"standard_name": "eastward_sea_water_velocity",
470+
"units": "m/s",
471+
"NAVO_code": 17,
472+
"actual_range": [-3.3700001, 3.6840003],
473+
"cell_methods": "time: mean",
474+
},
475+
),
476+
"tau": (
477+
["time"],
478+
np.arange(0, 24, T, dtype="float64"),
479+
{
480+
"long_name": "Tau",
481+
"units": "hours since analysis",
482+
"time_origin": "2024-12-31 12:00:00",
483+
"NAVO_code": 56,
484+
"cell_methods": "time: mean",
485+
},
486+
),
487+
},
488+
coords={
489+
"time": (
490+
["time"],
491+
np.arange(0, T, dtype="float64"),
492+
{
493+
"long_name": "Valid Time",
494+
"units": "hours since 2000-01-01 00:00:00",
495+
"time_origin": "2000-01-01 00:00:00",
496+
"calendar": "standard",
497+
"axis": "T",
498+
"NAVO_code": 13,
499+
"cell_methods": "time: mean",
500+
},
501+
),
502+
"depth": (
503+
["depth"],
504+
np.linspace(0, 5000, Z, dtype="float32"),
505+
{
506+
"long_name": "Depth",
507+
"standard_name": "depth",
508+
"units": "m",
509+
"positive": "down",
510+
"axis": "Z",
511+
"NAVO_code": 5,
512+
},
513+
),
514+
"lat": (
515+
["lat"],
516+
np.linspace(-80, 90, Y),
517+
{
518+
"long_name": "Latitude",
519+
"standard_name": "latitude",
520+
"units": "degrees_north",
521+
"point_spacing": "even",
522+
"axis": "Y",
523+
"NAVO_code": 1,
524+
},
525+
),
526+
"lon": (
527+
["lon"],
528+
np.linspace(0, 360, X, endpoint=False),
529+
{
530+
"long_name": "Longitude",
531+
"standard_name": "longitude",
532+
"units": "degrees_east",
533+
"modulo": "360 degrees",
534+
"axis": "X",
535+
"NAVO_code": 2,
536+
},
537+
),
538+
},
539+
),
461540
}

0 commit comments

Comments
 (0)