diff --git a/matlab/AUG/gdat_aug.m b/matlab/AUG/gdat_aug.m index 00dcc381f3eacb45874fe59b7242c6d5e6036d53..e9991d9ae0924c98c2599f033562f15705d6448b 100644 --- a/matlab/AUG/gdat_aug.m +++ b/matlab/AUG/gdat_aug.m @@ -552,7 +552,11 @@ elseif strcmp(mapping_for_aug.method,'switchcase') gdat_data.r(inotok) = NaN; try % eval(['[z_time]=sf2ab(diag_name,shot,z_node,''-exp'',exp_name_eff' extra_arg_sf2sig_eff_string ');']); - [z_time,err]=rdaAUG_eff(shot,diag_name,'Ti',exp_name_eff,[],extra_arg_sf2sig_eff_string,['area-base:' z_node ':1']); + if [exist('sf2sig')==3] + [z_time,err]=rdaAUG_eff(shot,diag_name,'z_time',exp_name_eff,[],extra_arg_sf2sig_eff_string,['area-base:' z_node ':1']); + else + [z_time,err]=rdaAUG_eff(shot,diag_name,'z_time',exp_name_eff,[],extra_arg_sf2sig_eff_string); + end gdat_data.z = z_time.data; inotok=find(gdat_data.z<=0); gdat_data.z(inotok) = NaN;