diff --git a/crpptbx/TCV/gdat_tcv.m b/crpptbx/TCV/gdat_tcv.m index 7725d0be23a2d80732e1acbd168bf205fa48a074..03feb1f916ae4e1746733fb76d490fbccb575e15 100644 --- a/crpptbx/TCV/gdat_tcv.m +++ b/crpptbx/TCV/gdat_tcv.m @@ -1077,6 +1077,31 @@ elseif strcmp(mapping_for_tcv.method,'switchcase') end % '\base::pd:pd_001'; + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + case {'ids'} + params_eff = gdat_data.gdat_params; + if isfield(params_eff,'source') && ~isempty(params_eff.source) + ids_top_name = params_eff.source; + else + disp('need an ids name in ''source'' parameter') + return + end + try + equil_empty=ids_gen(ids_top_name); + catch + warning(['cannot create empty ids: ids_gen(''' ids_top_name ''')']); + return + end + try + eval(['[ids_top,ids_top_description]=tcv_get_ids_' ids_top_name '(shot,equil_empty);']) + gdat_data.(ids_top_name) = ids_top; + gdat_data.([ids_top_name '_description']) = ids_top_description; + catch + disp(['check if function: tcv_get_ids_' ids_top_name ' exists in your path']) + gdat_data.(ids_top_name) = struct([]); + gdat_data.([ids_top_name '_description']) = struct([]); + end + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% case {'icds'} % note: same time array for all at main.data level, then individual at .ec, .nbi levels diff --git a/crpptbx/TCV/tcv_requests_mapping.m b/crpptbx/TCV/tcv_requests_mapping.m index 033c0ca62638b989b0e6a2fcac178e73d4a653f2..bb49d28ad0655d1eb61a391e8e9476a56f530e0b 100644 --- a/crpptbx/TCV/tcv_requests_mapping.m +++ b/crpptbx/TCV/tcv_requests_mapping.m @@ -135,6 +135,10 @@ switch lower(data_request) mapping.timedim = 1; mapping.label = 'various driven current'; mapping.method = 'switchcase'; + case 'ids' + mapping.timedim = 1; + mapping.label = 'ids ala imas'; + mapping.method = 'switchcase'; case 'ioh' mapping.timedim = 1; mapping.label = 'I ohmic transformer';