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

fix minor bugs now ok up to profiles_1d of main ones

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11357 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 8e06de8b
No related branches found
No related tags found
No related merge requests found
...@@ -231,7 +231,7 @@ profiles_1d.dpressure_dpsi = gdat(params_equilibrium.shot,'pprime'); ...@@ -231,7 +231,7 @@ profiles_1d.dpressure_dpsi = gdat(params_equilibrium.shot,'pprime');
% dvolume_dpsi = gdat(params_equilibrium.shot,'dvolume_dpsi'); % dvolume_dpsi = gdat(params_equilibrium.shot,'dvolume_dpsi');
% dvolume_drho_tor = gdat(params_equilibrium.shot,'dvolume_drho_tor'); % dvolume_drho_tor = gdat(params_equilibrium.shot,'dvolume_drho_tor');
% elongation = gdat(params_equilibrium.shot,'elongation'); % elongation = gdat(params_equilibrium.shot,'elongation');
profiles_1d.f_df_dpsi = gdat(params_equilibrium.shot,'ffprime'); profiles_1d.f_df_dpsi = gdat(params_equilibrium.shot,'ttprime');
profiles_1d.f = gdat(params_equilibrium.shot,'rbphi_rho'); profiles_1d.f = gdat(params_equilibrium.shot,'rbphi_rho');
% geometric_axis = gdat(params_equilibrium.shot,'geometric_axis'); % geometric_axis = gdat(params_equilibrium.shot,'geometric_axis');
% gm1 = gdat(params_equilibrium.shot,'gm1'); % gm1 = gdat(params_equilibrium.shot,'gm1');
...@@ -272,8 +272,11 @@ for it=1:length(ids_equilibrium.time) ...@@ -272,8 +272,11 @@ for it=1:length(ids_equilibrium.time)
for i=1:length(profiles_1d_fieldnames) for i=1:length(profiles_1d_fieldnames)
if ~any(strcmp(profiles_1d_fieldnames{i},special_fields)) if ~any(strcmp(profiles_1d_fieldnames{i},special_fields))
if ~isstruct(ids_equilibrium.time_slice{it}.profiles_1d.(profiles_1d_fieldnames{i})) if ~isstruct(ids_equilibrium.time_slice{it}.profiles_1d.(profiles_1d_fieldnames{i}))
ids_equilibrium.time_slice{it}.profiles_1d.(profiles_1d_fieldnames{i}) = ... if ~ischar(profiles_1d.(profiles_1d_fieldnames{i}).data) && ~isempty(profiles_1d.(profiles_1d_fieldnames{i}).data) ...
profiles_1d.(profiles_1d_fieldnames{i}).data(:,it); && size(profiles_1d.(profiles_1d_fieldnames{i}).data,2)>=it
ids_equilibrium.time_slice{it}.profiles_1d.(profiles_1d_fieldnames{i}) = ...
profiles_1d.(profiles_1d_fieldnames{i}).data(:,it);
end
else else
special_fields{end+1} = profiles_1d_fieldnames{i}; special_fields{end+1} = profiles_1d_fieldnames{i};
end end
...@@ -287,8 +290,7 @@ ntime = length(temp.psi_axis.data); ...@@ -287,8 +290,7 @@ ntime = length(temp.psi_axis.data);
for it=1:length(ids_equilibrium.time) for it=1:length(ids_equilibrium.time)
ids_equilibrium.time_slice{it}.profiles_1d.rho_tor_norm = ids_equilibrium.time_slice{it}.profiles_1d.rho_tor./ ... ids_equilibrium.time_slice{it}.profiles_1d.rho_tor_norm = ids_equilibrium.time_slice{it}.profiles_1d.rho_tor./ ...
ids_equilibrium.time_slice{it}.profiles_1d.rho_tor(end); ids_equilibrium.time_slice{it}.profiles_1d.rho_tor(end);
ids_equilibrium.time_slice{it}.profiles_1d.psi = ... ids_equilibrium.time_slice{it}.profiles_1d.psi = (1-profiles_1d.rho_tor.x.^2).*temp.psi_axis.data(it) + ...
reshape(1-profiles_1d.rho_tor.x.^2,nrho,1)*reshape(temp.psi_axis.data,1,ntime) + ... global_quantities.psi_boundary.data(it);
ones(nrho,1)*reshape(global_quantities.psi_boundary.data,1,ntime);
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