From e7b86348446aaaab4e913c72daf3c0d0ee143d27 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 26 Jul 2022 12:58:54 -0500
Subject: [PATCH] fix some cf issues

---
 modules/util/util.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/util/util.py b/modules/util/util.py
index 90d29509..1edb4f85 100644
--- a/modules/util/util.py
+++ b/modules/util/util.py
@@ -279,9 +279,9 @@ def check_oblique(satzen, test_angle=70.0):
         return True
 
 
-def get_average(tile_2d):
+def get_median(tile_2d):
     tile = tile_2d.flatten()
-    return np.nanmean(tile)
+    return np.nanmedian(tile)
 
 
 def get_grid_values_all(h5f, grid_name, scale_factor_name='scale_factor', add_offset_name='add_offset',
-- 
GitLab