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

debug sxR

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1859 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 3211b347
No related branches found
No related tags found
No related merge requests found
...@@ -443,18 +443,25 @@ switch JETkeywrdcase{index} ...@@ -443,18 +443,25 @@ switch JETkeywrdcase{index}
else else
status=ones(endi-starti+1,1); status=ones(endi-starti+1,1);
end end
trace.t=[];
trace.x=[];
for i=starti:endi for i=starti:endi
% Read channels from lowchannel to upchannel if necessary % Read channels from lowchannel to upchannel if necessary
if status(i)==1 if status(i)==1
% Status=1 => Not Read Yet % Status=1 => Not Read Yet
% vertical SXR chords % vertical SXR chords
ppftype='jpf'; ppftype='jpf';
tracename=['db/j3-sxr<v' num2str(i) '''''/1' name_ext] tracename=['db/j3-sxr<v' num2str(i) '''''/1' name_ext];
tracename=['db/j3-sxr<v' num2str(i) '/1' name_ext];
[a,x,t,d,e]=rda_eff(shot,ppftype,tracename); [a,x,t,d,e]=rda_eff(shot,ppftype,tracename);
% Convert from raw sxr data to W/m^2 % Convert from raw sxr data to W/m^2
trace.data(i,:) = a * vconvert(i); if ~isempty(a)
trace.t=t; trace.data(i,:) = a * vconvert(i);
trace.x(i,:)=x; trace.t=t;
if ~isempty(x)
trace.x(i,:)=x;
end
end
error=e; error=e;
end end
trace.dim=[{[starti:endi]'} ; {trace.t}]; trace.dim=[{[starti:endi]'} ; {trace.t}];
...@@ -473,7 +480,7 @@ switch JETkeywrdcase{index} ...@@ -473,7 +480,7 @@ switch JETkeywrdcase{index}
radius(i,:)=2.848 + (2.172-zmageff') .* tan(-4.5/180.*3.14159 - atan2(0.99.*(i-18),35.31)); radius(i,:)=2.848 + (2.172-zmageff') .* tan(-4.5/180.*3.14159 - atan2(0.99.*(i-18),35.31));
end end
varargout={{radius}}; varargout={{radius}};
trace.R=radius.data; trace.R=radius;
end end
%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& %&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment