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

add cats lpf

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1884 d63d8f72-b253-0410-a779-e742ad2e26cf
parent f310a646
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,10 @@ function [trace,error,varargout]=loadJETdata(shot,data_type,varargin) ...@@ -26,8 +26,10 @@ function [trace,error,varargout]=loadJETdata(shot,data_type,varargin)
% Special case compatible with old gdat.m allows (JET related): % Special case compatible with old gdat.m allows (JET related):
% gdat(51994,'ppf','efit/xip',...) % omitting the 'JET' input as assumes JET if 3rd argument is a string % gdat(51994,'ppf','efit/xip',...) % omitting the 'JET' input as assumes JET if 3rd argument is a string
% %
% for simplicity also allows: % examples:
% gdat(51994,'ppf/efit/xip',1,'JET',....) % aa=gdat(51994,'ppf/efit/xip',1,'JET');
% aa=gdat(55379,'jpf/di/c1f-chan8/131?type=lpf+diag=kc1f',1); % KC1F
% aa=gdat(53290,'jpf/di/c3-cats<c:001?type=lpf+diag=cats1',0,'JET') % long magnetic 8s by 001, 002, 003, 004 blocks
% %
% INPUT: % INPUT:
% shot: shot number % shot: shot number
......
...@@ -128,6 +128,14 @@ if usemdsplus ...@@ -128,6 +128,14 @@ if usemdsplus
taaa=mdsvalue('_ttc91=dim_of(_tc91,0);_ttc91[0]'); taaa=mdsvalue('_ttc91=dim_of(_tc91,0);_ttc91[0]');
time=linspace(taaa+1e-6,taaa+4,length(data))'; time=linspace(taaa+1e-6,taaa+4,length(data))';
end end
if isempty(time) & length(data)>1e6 & strcmpi(type,'lpf') & strcmpi(diag,'cats1')
ichannel=findstr(':00',maintrace);
iblock=str2num(maintrace(ichannel+3));
mdsdisconnect;
mdsconnect('mdsplus.jet.efda.org');
taaa=40+(iblock-1)*8;
time=linspace(taaa,taaa+8-4e-6,length(data))';
end
case 2 case 2
eval(['x=mdsvalue(''dim_of(_rdaeff' user ',0)'');']); eval(['x=mdsvalue(''dim_of(_rdaeff' user ',0)'');']);
eval(['time=mdsvalue(''dim_of(_rdaeff' user ',1)'');']); eval(['time=mdsvalue(''dim_of(_rdaeff' user ',1)'');']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment