Commit 4d6f02f9 authored by Joe Taylor's avatar Joe Taylor
Browse files

ru_main.m always passes a value of 1 for saveTotalRU_FLAG and the saving of the RU file is

made conditional on saveTotalRU_FLAG == 1
parent 6b42b3d8
Pipeline #36626 passed with stage
in 8 minutes and 11 seconds
...@@ -286,8 +286,10 @@ for jj = 1:length(bands) ...@@ -286,8 +286,10 @@ for jj = 1:length(bands)
RU_out.(bands{jj}).rad = RU.(bands{jj}).rad_polcorr; RU_out.(bands{jj}).rad = RU.(bands{jj}).rad_polcorr;
end %%%%%%%%%%%%%%%%%%%% end loop over bands, jj %%%%%%%%%%%%%%%%%%%% end %%%%%%%%%%%%%%%%%%%% end loop over bands, jj %%%%%%%%%%%%%%%%%%%%
fprintf(1,'Saving RU output file\n'); if saveTotalRU_FLAG == 1
RU_out.opts = opts; fprintf(1,'Saving RU output file\n');
save(fullfile(pname_out,sprintf('%s.mat',fname_out)), 'RU_out'); RU_out.opts = opts;
save(fullfile(pname_out,sprintf('%s.mat',fname_out)), 'RU_out');
end
return return
...@@ -2,5 +2,5 @@ function RU = ru_main(sat_name,l1b_fname,saveTotalRU_FLAG,pname_out); ...@@ -2,5 +2,5 @@ function RU = ru_main(sat_name,l1b_fname,saveTotalRU_FLAG,pname_out);
% addpath and userpath will both BREAK compiled code. so this is forbidden: % addpath and userpath will both BREAK compiled code. so this is forbidden:
% userpath(getenv('RU_HOME')); % userpath(getenv('RU_HOME'));
% however, we need a way for RU instrument ref data files to load from $RU_HOME by default % however, we need a way for RU instrument ref data files to load from $RU_HOME by default
RU = cris_gran_RU_ncparam(sat_name,l1b_fname,saveTotalRU_FLAG,pname_out); RU = cris_gran_RU_ncparam(sat_name,l1b_fname,1,pname_out);
return return
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment