diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py
index c57355bcc5643cd394e8d2e624f701faec6d4066..1d9fe8096cac6515dde27d79e6f6480fac3538fb 100644
--- a/modules/deeplearning/srcnn_l1b_l2.py
+++ b/modules/deeplearning/srcnn_l1b_l2.py
@@ -732,8 +732,9 @@ def analyze(fpath='/Users/tomrink/clavrx_snpp_viirs.A2019080.0100.001.2019080064
     leny, lenx = grd_lr.shape
     rnd = np.random.normal(loc=0, scale=0.001, size=grd_lr.size)
     grd_lr += rnd.reshape(grd_lr.shape)
-    grd_lr = np.where(grd_lr < 0, 0, grd_lr)
-    grd_lr = np.where(grd_lr > 1, 1, grd_lr)
+    if param == 'cloud_fraction':
+        grd_lr = np.where(grd_lr < 0, 0, grd_lr)
+        grd_lr = np.where(grd_lr > 1, 1, grd_lr)
 
     x = np.arange(lenx)
     y = np.arange(leny)