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

empty data if not OK, and add TION/P in geteqdsk

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1862 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 1425bd27
Branches
Tags
No related merge requests found
......@@ -118,6 +118,7 @@ if iread==1
efitdata.sspi=gdat(shot,['ppf/' efitlab '/sspi' s_extra{iexefit}],0,'JET');
% add for profiles
efitdata.ti=gdat(shot,['ppf/TION/TI' s_extra{iexchain2}],0,'JET');
efitdata.p_tion=gdat(shot,['ppf/TION/p' s_extra{iexchain2}],0,'JET');
efitdata.pi=gdat(shot,['ppf/NION/DD' s_extra{iexchain2}],0,'JET');
efitdata.zef=gdat(shot,['ppf/NION/ZEF' s_extra{iexchain2}],0,'JET');
% add for calculating NTM parameters
......
......@@ -298,8 +298,8 @@ switch JETkeywrdcase{index}
[a,x,t,d,e]=rda_eff(shot,ppftype,tracename);
switch tracename
case {'efit/btpd','efit/btpd?uid=jetppf+seq=0'}
if isstr(t);
disp('t is a string, assumes means btpd not defined');
if isempty(a) | isempty(t);
disp('data or t empty, assumes means btpd not defined');
[xip,x,t,d,e]=rda_eff(shot,'ppf','efit/xip');
shot_mg3_list=[47274 47275 47276 47280 47281 47282 47283 47284 47285 47286 47287 47290 47295 47296 47301];
if isempty(find(shot_mg3_list==shot))
......@@ -312,8 +312,8 @@ switch JETkeywrdcase{index}
a=2.122e6 .* wdia ./xip.^2 ./ rgeo;
end
case {'efit/btnd','efit/btnd?uid=jetppf+seq=0'}
if isstr(t);
disp('t is a string, assumes means btnd not defined');
if isempty(a) | isempty(t);
disp('data or t empty, assumes means btnd not defined');
[xip,x,t,d,e]=rda_eff(shot,'ppf','efit/xip');
shot_mg3_list=[47274 47275 47276 47280 47281 47282 47283 47284 47285 47286 47287 47290 47295 47296 47301];
if isempty(find(shot_mg3_list==shot))
......
......@@ -142,3 +142,14 @@ else
data=a';
end
end
% to prevent problems when trace empty and time become string
if ischar(time)
time=[];
end
if ischar(x)
x=[];
end
if isempty(x) & ~isempty(data) & data==0
data=[];
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment