From eb70ddfe66e4973e80a6f6062a4af33aae152932 Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@jrc.ec.europa.eu>
Date: Tue, 10 Dec 2013 17:31:26 +0100
Subject: [PATCH] threshold_redform must override detailed mapping also with
 log-transformation

---
 matlab/gsa/redform_map.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/gsa/redform_map.m b/matlab/gsa/redform_map.m
index 94c56a41d..2a2e9b027 100644
--- a/matlab/gsa/redform_map.m
+++ b/matlab/gsa/redform_map.m
@@ -132,7 +132,7 @@ for j=1:size(anamendo,1)
                 iplo=iplo+1;
                 js=js+1;
                 xdir0 = [adir,filesep,namendo,'_vs_', namexo];
-                if ilog==0,
+                if ilog==0 || ~isempty(threshold),
                     if isempty(threshold)
                         if isempty(dir(xdir0))
                             mkdir(xdir0)
@@ -233,7 +233,7 @@ for j=1:size(anamendo,1)
                 iplo=iplo+1;
                 js=js+1;
                 xdir0 = [adir,filesep,namendo,'_vs_', namlagendo];
-                if ilog==0,
+                if ilog==0 || ~isempty(threshold),
                     if isempty(threshold)
                         if isempty(dir(xdir0))
                             mkdir(xdir0)
-- 
GitLab