Skip to content
Snippets Groups Projects
Commit f2d882ca authored by Michele Marin's avatar Michele Marin
Browse files

Add check for disrupted shot

parent 1ce97471
Branches
Tags
1 merge request!184Adding errorbars for ion temperature and impurity density
...@@ -123,6 +123,13 @@ for i=1:length(gdat_params_fields) ...@@ -123,6 +123,13 @@ for i=1:length(gdat_params_fields)
end end
end end
gdat_params.data_request = 'ids'; gdat_params.data_request = 'ids';
%Check that the shot did not disrupt very early.
t_disrupted = gdat(shot,'time_disrupted()');
if t_disrupted.data <= 0.04 | t_disrupted.data > 128
error('the shot disrupted')
end
for i=1:length(params_tcv2ids.ids_names) for i=1:length(params_tcv2ids.ids_names)
ids_to_get = params_tcv2ids.ids_names{i}; ids_to_get = params_tcv2ids.ids_names{i};
gdat_params.source = ids_to_get; gdat_params.source = ids_to_get;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment