diff --git a/TCV/loadTCVdata.m b/TCV/loadTCVdata.m index e087c9410f37cd29738f4457337ea154cdfc7470..c74b018366eab87679893d8aa54881c82bb9b928 100644 --- a/TCV/loadTCVdata.m +++ b/TCV/loadTCVdata.m @@ -242,15 +242,20 @@ switch TCVkeywrdcase{index} [fans,vangle,xchord,ychord,aomega,angfact]=xtomo_geometry(1,icamera); % calculating intersection of the view lines with magnetic axis if strcmp(data_type,'sxR') - varargout{1}={VsxrTCVradius(zmag.data,xchord,ychord)}; t_1=zmag.t(1); t_2=zmag.t(end); + [xtomo_signal,t]=get_xtomo_data(shot,t_1,t_2,13e-6*16, ... + icamera,angfact); + data=interp1(zmag.t,zmag.data,t'); + radius.t=t'; + radius.data={VsxrTCVradius(data,xchord,ychord)}; + varargout{1}={radius}; else t_1=0.001; t_2=3; - end - [xtomo_signal,t]=get_xtomo_data(shot,t_1,t_2,13e-6*16, ... + [xtomo_signal,t]=get_xtomo_data(shot,t_1,t_2,13e-6*16, ... icamera,angfact); + end end for i=1:(20*icamera*ones(10,1)) trace.t(:,i)=t';