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

tested all present request names, only sxr and ece missing

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@5076 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 359cd95e
No related branches found
No related tags found
No related merge requests found
......@@ -719,6 +719,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
gdat_data.units = 'T/s';
gdat_data.data_fullpath='abs(mhdmode("LFS",n,1))';
gdat_data.request_description = 'delta_Bdot from magnetic probes to get n=1, 2 and 3';
gdat_data.label = {'n=1','n=2','n=3'}; % can be used in legend(gdat_data.label)
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
......@@ -69,12 +69,17 @@ if prod(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty
ylabel_eff = gdat_data.label;
if iscell(gdat_data.label) && length(gdat_data.label)>=2; ylabel_eff = gdat_data.label{2}; end
if ~isempty(gdat_data.units)
ylabel([ylabel_eff '[' gdat_data.units ']']);
hylabel=ylabel([ylabel_eff '[' gdat_data.units ']']);
else
ylabel(ylabel_eff);
hylabel=ylabel(ylabel_eff);
end
zoom on;
end
if strcmp(gdat_data.gdat_request,'mhd')
% special case, add legend instead of ylabel
delete(hylabel);
legend(gdat_data.label,2);
end
else
disp('cannot plot gdat_data, has empty data or t field')
end
machine='AUG';
shot=30594;
machine='TCV';
shot=48836;
aa=gdat('machine',machine);
aa=gdat;
all_request_names = aa.gdat_request
......
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