From 34cbd454683588363ab7ff86f97ca1cbc4f845e8 Mon Sep 17 00:00:00 2001 From: Christopher Polster Date: Fri, 27 Sep 2024 22:53:25 +0200 Subject: [PATCH] Add valid_time to accepted time dimension names Ensure compatibility with variable naming of new CDS NetCDF converter. --- src/barotropic/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/barotropic/io.py b/src/barotropic/io.py index 9188ad8..2561075 100644 --- a/src/barotropic/io.py +++ b/src/barotropic/io.py @@ -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"],