diff --git a/matlab/TCV/tcv_requests_mapping.m b/matlab/TCV/tcv_requests_mapping.m index 8c03b9525fc8fda31e96f54871f21ef5a77bba13..354eac2877ec410a2981b80ef61721f838b7a1ef 100644 --- a/matlab/TCV/tcv_requests_mapping.m +++ b/matlab/TCV/tcv_requests_mapping.m @@ -160,7 +160,7 @@ switch lower(data_request) 'gdat_tmp2=gdat_tcv(shot,params_eff);'... 'params_eff.data_request=''\tcv_shot::top.results.conf:h_scal'';' ... 'gdat_tmp3=gdat_tcv(shot,params_eff);ih98y2=5;' ... - 'gdat_tmp.data = gdat_tmp.data./gdat_tmp2.data .* gdat_tmp3.data(ih98y2,:)'';']; + 'ih98y2=5;if size(gdat_tmp3.data,1)>=ih98y2;gdat_tmp.data = gdat_tmp.data./gdat_tmp2.data .* gdat_tmp3.data(ih98y2,:)'';end;']; % $$$ case 'icds' % $$$ mapping.timedim = 1; % $$$ mapping.label = 'various driven current';