Commit 766fa048 authored by R.K.Garcia's avatar R.K.Garcia
Browse files

Use fullfile with $RU_HOME when compiled

parent a043451b
Pipeline #36575 passed with stage
in 7 minutes and 16 seconds
......@@ -23,19 +23,20 @@ bands{3} = 'sw';
%%============================================================
%% RU STEP 1a: Load ancillary data from static file (satellite dependent)
%%============================================================
j1jnkfn = 'J1_L1B_ru_tool_param_file.nc';
snppjnkfn = 'SNPP_L1B_ru_tool_param_file.nc';
if (ismcc || isdeployed)
% RKG: addpath does not work with compiled code (MCR) for data file search path
path_prefix = strcat(getenv('RU_HOME'), '/');
else
path_prefix = '';
j1jnkfn = fullfile(getenv('RU_HOME'),j1jnkfn);
snppjnkfn = fullfile(getenv('RU_HOME'),snppjnkfn);
end
switch sat_name
case 'J1'
% J1
jnk = rd_nc4(strcat(path_prefix,'J1_L1B_ru_tool_param_file.nc'));
jnk = rd_nc4(j1jnkfn);
case 'SNPP'
% SNPP
jnk = rd_nc4(strcat(path_prefix,'SNPP_L1B_ru_tool_param_file.nc'));
jnk = rd_nc4(snppjnkfn);
end
%%============================================================
%% RU STEP 1b: separate .nc param file contents into ICT_Param, RU,
......
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