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

prepare for ppfdat

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1906 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 82234bd2
No related branches found
No related tags found
No related merge requests found
...@@ -580,25 +580,36 @@ switch JETkeywrdcase{index} ...@@ -580,25 +580,36 @@ switch JETkeywrdcase{index}
ppftype='ppf'; ppftype='ppf';
tracename=['kk3/te' num2str(i,'%2.2d') name_ext]; tracename=['kk3/te' num2str(i,'%2.2d') name_ext];
disp(tracename) disp(tracename)
[a,x,t,d,e]=rda_eff(shot,ppftype,tracename); a=which('ppfdat');
if isempty(a) & size(trace.data,2)>1 if ~isempty(a)
trace.data(i,:)=NaN; [a,x,t,d,e]=rda_eff(shot,ppftype,tracename);
if isempty(a) & size(trace.data,2)>1
trace.data(i,:)=NaN;
else
trace.data(i,:)=a;
trace.t=t;
end
if ~isempty(x); trace.x(i,:)=x'; end;
error=e;
else else
trace.data(i,:)=a; [nx, nt, data, x, t, ierr, matlabErr, szErr ] = ...
trace.t=t; ppfdat(shot, 'kk3', ['te' num2str(i,'%2.2d')])
end end
if ~isempty(x); trace.x(i,:)=x'; end;
error=e;
ppftypeR='ppf'; ppftypeR='ppf';
tracenameR=['kk3/rc' num2str(i,'%2.2d') name_ext]; tracenameR=['kk3/rc' num2str(i,'%2.2d') name_ext];
[a,x,t,d,e]=rda_eff(shot,ppftypeR,tracenameR); a=which('ppfdat');
if isempty(a) & size(trace.data,2)>1 if ~isempty(a)
radius.data(i,:)=NaN; [a,x,t,d,e]=rda_eff(shot,ppftypeR,tracenameR);
else if isempty(a) & size(trace.data,2)>1
radius.data(i,:)=a; radius.data(i,:)=NaN;
radius.t=t; else
radius.x=x; radius.data(i,:)=a;
end radius.t=t;
radius.x=x;
end
else
end
end end
end end
trace.dim=[{[starti:endi]'} ; {trace.t}]; trace.dim=[{[starti:endi]'} ; {trace.t}];
......
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