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

add firrat

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@1908 d63d8f72-b253-0410-a779-e742ad2e26cf
parent f157a167
Branches
Tags
No related merge requests found
...@@ -433,12 +433,24 @@ switch TCVkeywrdcase{index} ...@@ -433,12 +433,24 @@ switch TCVkeywrdcase{index}
case {'nerho','terho'} case {'nerho','terho'}
% ne or Te from Thomson data on rho=sqrt(psi_normalised) mesh: (rho,t) % ne or Te from Thomson data on rho=sqrt(psi_normalised) mesh: (rho,t)
mdsopen(shot); mdsopen(shot);
time=mdsdata('\results::thomson:times');
if strcmp(TCVkeywrdcase{index},'nerho') if strcmp(TCVkeywrdcase{index},'nerho')
nodenameeff='\results::thomson:ne'; nodenameeff='\results::thomson:ne';
nodenameeff='\results::thomson:ne; error_bar ; fir_thom_rat';
tracetdi=tdi(nodenameeff); tracetdi=tdi(nodenameeff);
nodenameeff='\results::thomson:ne; error_bar ; fir_thom_rat; (ne,std)*fir_thom_rat';
tracestd=tdi('\results::thomson:ne:error_bar'); tracestd=tdi('\results::thomson:ne:error_bar');
tracefirrat=tdi('\results::thomson:fir_thom_rat'); if shot>=23801
tracefirrat=tdi('\results::thomson.profiles.auto:fir_thom_rat'); %time base not same!!
if isempty(tracefirrat.data)
disp('problem with \results::thomson.profiles.auto:fir_thom_rat: empty')
end
else
tracefirrat=tdi('\results::thomson:fir_thom_rat');
tracefirrat.dim{1}=time;
end
itim=iround(time,tracefirrat.dim{1});
tracefirrat_data=NaN*ones(size(tracetdi.dim{1}));
tracefirrat_data(itim)=tracefirrat.data;
else else
nodenameeff='\results::thomson:te'; nodenameeff='\results::thomson:te';
tracetdi=tdi(nodenameeff); tracetdi=tdi(nodenameeff);
...@@ -447,10 +459,13 @@ switch TCVkeywrdcase{index} ...@@ -447,10 +459,13 @@ switch TCVkeywrdcase{index}
end end
trace.data=tracetdi.data'; % Thomson data as (t,z) trace.data=tracetdi.data'; % Thomson data as (t,z)
trace.std=tracestd.data'; trace.std=tracestd.data';
trace.firrat=tracefirrat.data'; if strcmp(TCVkeywrdcase{index},'nerho')
trace.firrat=tracefirrat_data;
trace.data_abs=trace.data*diag(tracefirrat_data);
trace.std_abs=trace.std*diag(tracefirrat_data);
end
trace.name=[num2str(shot) ';' nodenameeff]; trace.name=[num2str(shot) ';' nodenameeff];
% add correct dimensions % add correct dimensions
time=mdsdata('\results::thomson:times');
% construct rho mesh % construct rho mesh
psi_max=tdi(['\results::thomson:psi_max' liuqe_ext]); psi_max=tdi(['\results::thomson:psi_max' liuqe_ext]);
psiscatvol=tdi(['\results::thomson:psiscatvol' liuqe_ext]); psiscatvol=tdi(['\results::thomson:psiscatvol' liuqe_ext]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment