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} ...@@ -296,6 +296,11 @@ switch AUGkeywrdcase{index}
else else
timerange=[1 7]; timerange=[1 7];
end end
if nargin>=7 & ~isempty(varargin{5})
nth=varargin{5};
else
nth=13;
end
trace.t=[]; trace.t=[];
trace.x=[]; trace.x=[];
ppftype='SXR'; ppftype='SXR';
...@@ -308,7 +313,6 @@ switch AUGkeywrdcase{index} ...@@ -308,7 +313,6 @@ switch AUGkeywrdcase{index}
trace.units='W/m^2'; trace.units='W/m^2';
trace.name=[num2str(shot) '/' ppftype '/' tracename]; trace.name=[num2str(shot) '/' ppftype '/' tracename];
% keep only nth points % keep only nth points
nth=13;
trace.t=trace.t(1:nth:end); trace.t=trace.t(1:nth:end);
trace.data=trace.data(:,1:nth:end); trace.data=trace.data(:,1:nth:end);
trace.dim{2}=trace.t; trace.dim{2}=trace.t;
......
...@@ -112,6 +112,8 @@ machine='TCV'; ...@@ -112,6 +112,8 @@ machine='TCV';
a=which('sawteeth'); a=which('sawteeth');
if ~isempty(findstr('ipp',a)) | ~isempty(findstr('/u/osauter',a)); if ~isempty(findstr('ipp',a)) | ~isempty(findstr('/u/osauter',a));
machine='AUG'; machine='AUG';
global usemdsplus; % so far from AUG, do not use mdsplus
usemdsplus=0;
elseif ~isempty(findstr('/home/osauter',a)); elseif ~isempty(findstr('/home/osauter',a));
machine='JET'; machine='JET';
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