From 8972493cb33adc84be9cfe9a3fadf66634150599 Mon Sep 17 00:00:00 2001 From: Rolf Reichle Date: Mon, 3 Jul 2023 13:54:13 -0400 Subject: [PATCH] bug fix in matlab reader (MAPL_ReadForcing_fullfile.m) --- .../LDAS_App/util/shared/matlab/MAPL_ReadForcing_fullfile.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Applications/LDAS_App/util/shared/matlab/MAPL_ReadForcing_fullfile.m b/src/Applications/LDAS_App/util/shared/matlab/MAPL_ReadForcing_fullfile.m index 0e5b6227..14f8cc6c 100644 --- a/src/Applications/LDAS_App/util/shared/matlab/MAPL_ReadForcing_fullfile.m +++ b/src/Applications/LDAS_App/util/shared/matlab/MAPL_ReadForcing_fullfile.m @@ -12,10 +12,10 @@ % % check whether no-data variables are available on input -if ~exist('nodata'), nodata = 1.e15; end % default: MAPL_UNDEF -if ~exist('nodata_tolfrac'), nodata_tolfrac = 1.e-4; end +if ~exist('nodata', 'var'), nodata = 1.e15; end % default: MAPL_UNDEF +if ~exist('nodata_tolfrac', 'var'), nodata_tolfrac = 1.e-4; end -nodata_tol = abs( nodata*nodata_tol_frac ); +nodata_tol = abs( nodata*nodata_tolfrac ); % -------------------------------------------------------------------------