Skip to content
Snippets Groups Projects
Commit 214f9f18 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

ids_get included in gdat, so get_IDS_ITER_4_LIUQE.m not needed anymore, see modif inside

parent 9eaa2de7
No related branches found
No related tags found
1 merge request!41Add corsica liuqe complete ids from meq
clear all doread = 0;
close all dosave = 0;
clc
if doread
% This script will complete the IDS of CORSICA with the missing fields recomputing the missing quantities from available information clear all
close all
data_path_in = '/NoTivoli/carpanes/LIU_RAP_ITER/CORSICA_ids/CORSICA_130510.mat'; clc
%path_IDS = '/NoTivoli/carpanes/LIU_RAP_ITER/CORSICA_ids/CORSICA_130506.mat';
% This script will complete the IDS of CORSICA with the missing fields recomputing the missing quantities from available information
data_path_out = '/NoTivoli/carpanes/LIU_RAP_ITER/CORSICA_ids/CORSICA_130510_extended_COCOS17.mat';
data_path_in = '/NoTivoli/carpanes/LIU_RAP_ITER/CORSICA_ids/CORSICA_130510.mat';
% Load the IDS file %path_IDS = '/NoTivoli/carpanes/LIU_RAP_ITER/CORSICA_ids/CORSICA_130506.mat';
IDS = load(data_path_in);
data_path_out = '/NoTivoli/carpanes/LIU_RAP_ITER/CORSICA_ids/CORSICA_130510_extended_COCOS17.mat';
% Load the IDS file
IDS = load(data_path_in);
end
%% Correct COCOS convention on original data %% Correct COCOS convention on original data
...@@ -127,11 +132,13 @@ IDS.tf.b_field_tor_vacuum_r.data = LXC.rBt; ...@@ -127,11 +132,13 @@ IDS.tf.b_field_tor_vacuum_r.data = LXC.rBt;
%% Convert from 11 to 17 %% Convert from 11 to 17
IDS.magnetics = ids_generic_cocos_nodes_transformation_symbolic(IDS.magnetics, 'magnetics', 11, 17); IDS.magnetics = ids_generic_cocos_nodes_transformation_symbolic(IDS.magnetics, 'magnetics', 11, 17);
IDS.pf_active = ids_generic_cocos_nodes_transformation_symbolic(IDS.pf_active, 'pf_active', 11, 17); IDS.pf_active = ids_generic_cocos_nodes_transformation_symbolic(IDS.pf_active, 'pf_active', 11, 17,[],[],[],[],[],3);
IDS.tf = ids_generic_cocos_nodes_transformation_symbolic(IDS.tf, 'tf', 11, 17); IDS.tf = ids_generic_cocos_nodes_transformation_symbolic(IDS.tf, 'tf', 11, 17);
%% Store the resulting data %% Store the resulting data
save(data_path_out, '-struct', 'IDS') if dosave
fprintf('\n wrote file %s \n', data_path_out); save(data_path_out, '-struct', 'IDS')
fprintf('\n wrote file %s \n', data_path_out);
end
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