Skip to content
Snippets Groups Projects
Commit ca429c97 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

add assign variables & attributes in base workspace

parent 93b14c0b
No related branches found
No related tags found
No related merge requests found
......@@ -171,14 +171,22 @@ automaticQC( hMainFig )
for key = keys(nc.VARIABLES)
var = char(key);
tsg.(var) = nc.VARIABLES.(var).data__;
% assign variable in base workspace
% -------------------------------------------
assignin('base', var , tsg.(var));
end
% loop over all gloabal attributes and get associated value in
% loop over all global attributes and get associated value in
% tsg structure
% -----------------------------------------------------------------
for key = keys(nc.ATTRIBUTES)
att = char(key);
tsg.(att) = nc.ATTRIBUTES.(att).data__;
% assign globals attributes in base workspace
% -------------------------------------------
assignin('base', att , tsg.(att));
end
% Save the data in the application GUI
......
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