From 3c7e952cf7e82d7cb18c3dff1bbdd5d3a000e91f Mon Sep 17 00:00:00 2001
From: Paolo Veglio <paolo.veglio@ssec.wisc.edu>
Date: Wed, 17 Apr 2024 20:11:54 +0000
Subject: [PATCH] fixed bug with land restoral. mostly there but still a few
 pixels off

---
 mvcm/main.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mvcm/main.py b/mvcm/main.py
index 4e31f5b..bb7d702 100644
--- a/mvcm/main.py
+++ b/mvcm/main.py
@@ -423,8 +423,7 @@ def main(
         & (cmin <= 0.95)
     )
     tmp_bits = (
-        restoral_bits["09"]
-        * restoral_bits["13"]
+        np.clip(restoral_bits["09"] + restoral_bits["13"], 0, 1)
         * restoral_bits["15"]
         * restoral_bits["05"]
         * restoral_bits["11"]
-- 
GitLab