From cc0b2ed092818df5ac29ac691be2cd3cc043a40e Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Tue, 11 Jun 2024 16:34:28 -0400 Subject: [PATCH] Fix v dimension ordering in roms extension (#39) * Fix v dimension ordering in roms extension * Cleanup --- xreds/extensions/roms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xreds/extensions/roms.py b/xreds/extensions/roms.py index 783f398..88a1c1d 100644 --- a/xreds/extensions/roms.py +++ b/xreds/extensions/roms.py @@ -111,6 +111,7 @@ def transform_dataset(self, ds: xr.Dataset, config: dict) -> xr.Dataset: coords="minimal", compat="override", ) + v_rho = v_rho.transpose(..., "eta_rho", "xi_rho") v_rho["lat_rho"] = ds.lat_rho v_rho["lon_rho"] = ds.lon_rho