Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 89d2fac

Browse files
authored
Update gfs.py to rename init_time
1 parent 75aad90 commit 89d2fac

File tree

1 file changed

+2
-0
lines changed
  • ocf_datapipes/load/nwp/providers

1 file changed

+2
-0
lines changed

ocf_datapipes/load/nwp/providers/gfs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def open_gfs(zarr_path) -> xr.DataArray:
2828
del gfs
2929

3030
nwp = nwp.rename({"variable": "channel"})
31+
if "init_time" in nwp.dims:
32+
nwp = nwp.rename({"init_time": "init_time_utc"})
3133
nwp = nwp.transpose("init_time_utc", "step", "channel", "latitude", "longitude")
3234

3335
return nwp

0 commit comments

Comments
 (0)