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

Use $RU_HOME when compiled when searching for inst ancillary

parent 11ed9468
Pipeline #36570 passed with stage
in 7 minutes and 19 seconds
......@@ -23,13 +23,19 @@ bands{3} = 'sw';
%%============================================================
%% RU STEP 1a: Load ancillary data from static file (satellite dependent)
%%============================================================
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 = '';
end
switch sat_name
case 'J1'
% J1
jnk = rd_nc4('J1_L1B_ru_tool_param_file.nc');
jnk = rd_nc4(strcat(path_prefix,'J1_L1B_ru_tool_param_file.nc'));
case 'SNPP'
% SNPP
jnk = rd_nc4('SNPP_L1B_ru_tool_param_file.nc');
jnk = rd_nc4(strcat(path_prefix,'SNPP_L1B_ru_tool_param_file.nc'));
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