diff --git a/modules/util/util.py b/modules/util/util.py
index 7305369a964235a8ca94c0440d79c4109b07aaa0..a954e604834a2e3a9cceeebbcbf199672bfbaa31 100644
--- a/modules/util/util.py
+++ b/modules/util/util.py
@@ -664,6 +664,7 @@ rho_ice = 0.917
 
 
 def compute_lwc_iwc(iphase, reff, opd):
+    iphase = iphase.flatten()
     lwp_dcomp = np.zeros(reff.shape[0])
     iwp_dcomp = np.zeros(reff.shape[0])
     lwp_dcomp[:] = np.nan