Skip to content
Snippets Groups Projects
Commit bf4887fd authored by Olivier Sauter's avatar Olivier Sauter
Browse files

adapt sxr and ece to .x, .dim new standard and (x,t)

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1832 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 8aee7a6d
No related branches found
No related tags found
No related merge requests found
...@@ -392,9 +392,10 @@ switch TCVkeywrdcase{index} ...@@ -392,9 +392,10 @@ switch TCVkeywrdcase{index}
[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); icamera,angfact);
data=interp1(zmag.t,zmag.data,t'); data=interp1(zmag.t,zmag.data,t');
radius.data=VsxrTCVradius(data,xchord,ychord)';
radius.t=t'; radius.t=t';
radius.data={VsxrTCVradius(data,xchord,ychord)};
varargout{1}={radius}; varargout{1}={radius};
trace.R=radius.data;
else else
t_1=0.001; t_1=0.001;
t_2=3; t_2=3;
...@@ -402,18 +403,18 @@ switch TCVkeywrdcase{index} ...@@ -402,18 +403,18 @@ switch TCVkeywrdcase{index}
icamera,angfact); icamera,angfact);
end end
end end
for i=1:(20*icamera*ones(10,1)) trace.data=xtomo_signal;
trace.t(:,i)=t'; trace.x=[1:size(trace.data,1)]';
end trace.t=t';
trace.data=xtomo_signal'; trace.dim=[{trace.x} ; {trace.t}];
trace.dim{1}={trace.t}; trace.dimunits=[{'channel #'} ; {'time [s]'}];
trace.dimunits={'time [s]'};
error=0; error=0;
%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& %&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
case 'ece' case 'ece'
% load TCV ECE data % load TCV ECE data
% Status=1 => Not Read Yet % Status=1 => Not Read Yet
mdsopen(shot);
if ~isempty(find(status == 1)) if ~isempty(find(status == 1))
if eval(['~mdsdata(''node_exists("\\RESULTS::ECE:rho")'')']) if eval(['~mdsdata(''node_exists("\\RESULTS::ECE:rho")'')'])
disp(['node \RESULTS::ECE:rho does not exist for shot = ' num2str(shot)]) disp(['node \RESULTS::ECE:rho does not exist for shot = ' num2str(shot)])
...@@ -428,14 +429,14 @@ switch TCVkeywrdcase{index} ...@@ -428,14 +429,14 @@ switch TCVkeywrdcase{index}
end end
a=min(find(R(:,1)>=0)); a=min(find(R(:,1)>=0));
b=max(find(R(:,1)>=0)); b=max(find(R(:,1)>=0));
for i=1:size(TE_ECE,2) trace.data=TE_ECE(a:b,:)';
trace.t(:,i)=T(a:b); trace.t=T(a:b);
end trace.x=[1:size(trace.data,1)]';
trace.data=TE_ECE(a:b,:); trace.dim=[{trace.x} ; {trace.t}];
trace.dimunits=[{'channel #'} ; {'time [s]'}];
trace.R=R(a:b,:)';
radius.data=trace.R;
radius.t=trace.t; radius.t=trace.t;
radius.data=R(a:b,:);
trace.dim{1}={trace.t};
trace.dimunits={'time [s]'};
varargout{1}={radius}; varargout{1}={radius};
error=0; error=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment