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') ...@@ -719,6 +719,7 @@ elseif strcmp(mapping_for_tcv.method,'switchcase')
gdat_data.units = 'T/s'; gdat_data.units = 'T/s';
gdat_data.data_fullpath='abs(mhdmode("LFS",n,1))'; 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.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 end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
...@@ -69,12 +69,17 @@ if prod(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty ...@@ -69,12 +69,17 @@ if prod(isfield(gdat_data,{'data','t'})) && ~isempty(gdat_data.data) && ~isempty
ylabel_eff = gdat_data.label; ylabel_eff = gdat_data.label;
if iscell(gdat_data.label) && length(gdat_data.label)>=2; ylabel_eff = gdat_data.label{2}; end if iscell(gdat_data.label) && length(gdat_data.label)>=2; ylabel_eff = gdat_data.label{2}; end
if ~isempty(gdat_data.units) if ~isempty(gdat_data.units)
ylabel([ylabel_eff '[' gdat_data.units ']']); hylabel=ylabel([ylabel_eff '[' gdat_data.units ']']);
else else
ylabel(ylabel_eff); hylabel=ylabel(ylabel_eff);
end end
zoom on; zoom on;
end end
if strcmp(gdat_data.gdat_request,'mhd')
% special case, add legend instead of ylabel
delete(hylabel);
legend(gdat_data.label,2);
end
else else
disp('cannot plot gdat_data, has empty data or t field') disp('cannot plot gdat_data, has empty data or t field')
end end
machine='AUG'; machine='AUG';
shot=30594; shot=30594;
machine='TCV';
shot=48836;
aa=gdat('machine',machine); aa=gdat('machine',machine);
aa=gdat; aa=gdat;
all_request_names = aa.gdat_request all_request_names = aa.gdat_request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment