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

no mdsplus from AUG to AUG, and add nth sxr point option

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1880 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 38b1858c
No related branches found
No related tags found
No related merge requests found
......@@ -296,6 +296,11 @@ switch AUGkeywrdcase{index}
else
timerange=[1 7];
end
if nargin>=7 & ~isempty(varargin{5})
nth=varargin{5};
else
nth=13;
end
trace.t=[];
trace.x=[];
ppftype='SXR';
......@@ -308,7 +313,6 @@ switch AUGkeywrdcase{index}
trace.units='W/m^2';
trace.name=[num2str(shot) '/' ppftype '/' tracename];
% keep only nth points
nth=13;
trace.t=trace.t(1:nth:end);
trace.data=trace.data(:,1:nth:end);
trace.dim{2}=trace.t;
......
......@@ -112,6 +112,8 @@ machine='TCV';
a=which('sawteeth');
if ~isempty(findstr('ipp',a)) | ~isempty(findstr('/u/osauter',a));
machine='AUG';
global usemdsplus; % so far from AUG, do not use mdsplus
usemdsplus=0;
elseif ~isempty(findstr('/home/osauter',a));
machine='JET';
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