Skip to content

Commit

Permalink
Add valid_time to accepted time dimension names
Browse files Browse the repository at this point in the history
Ensure compatibility with variable naming of new CDS NetCDF converter.
  • Loading branch information
chpolste committed Sep 27, 2024
1 parent aa14c93 commit 34cbd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/barotropic/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def as_dataset(states, fields=("u", "v"), concat_dim="time"):
_VAR_NAMES = {
"lon": ["longitude", "lon"],
"lat": ["latitude", "lat"],
"time": ["time"],
"time": ["time", "valid_time"],
"u": ["u", "ugrd", "eastward_wind"],
"v": ["v", "vgrd", "northward_wind"],
"vo": ["vo", "relv", "vorticity", "relative_vorticity"],
Expand Down

0 comments on commit 34cbd45

Please sign in to comment.