From 726b68539bb2b14764988ed3ebed2f989c03de03 Mon Sep 17 00:00:00 2001 From: marioggil Date: Fri, 3 Jun 2022 16:54:06 -0500 Subject: [PATCH] Bug fix --- ExtractImage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ExtractImage.py b/ExtractImage.py index 6f058af..624d7b0 100644 --- a/ExtractImage.py +++ b/ExtractImage.py @@ -118,6 +118,8 @@ def get_color(x,colormap,Min,Max): #print(x) if x < 0: x=0.0 + if x > 1.0: + x=1.0 x = np.around(x, decimals=decimals) if colormap=="Spectral" or colormap=='ocean' or colormap=="RdYlBu": Tempcm=cm.get_cmap(colormap).reversed()