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

fix B0 new option with shot=1

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@4087 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 389c33c0
No related branches found
No related tags found
No related merge requests found
......@@ -909,16 +909,23 @@ switch TCVkeywrdcase{index}
case {'B0'}
% B0 at R0=0.88
if liuqe_version==-1
mdsopen( 'pcs', shot); %synthetic shot generated with FBT and MGAMS.
% mdsopen( 'pcs', shot); %synthetic shot generated with FBT and MGAMS.
mdsopen(shot)
nodenameeff = 'tcv_eq("BZERO","FBTE")';
tracetdi=tdi(nodenameeff);
trace.data = tracetdi.data;
trace.t = tracetdi.dim{1};
else
mdsopen(shot);
nodenameeff=['\magnetics::iphi'];
tracetdi=tdi(nodenameeff);
R0EXP=0.88;
trace.data=192.E-07 * 0.996 *tracetdi.data/R0EXP;
trace.t=tracetdi.dim{1};
end
nodenameeff=['\magnetics::iphi'];
tracetdi=tdi(nodenameeff);
R0EXP=0.88;
trace.data=192.E-07 * 0.996 *tracetdi.data/R0EXP;
trace.x=[];
trace.t=tracetdi.dim{1};
%keyboard
trace.dim=[{trace.t}];
trace.dimunits=[{'time [s]'}];
% isfield does not work since tracetdi is not a 'struct' but a tdi object, thus isfield using isa does not work
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment