Skip to content
Snippets Groups Projects
Commit 269646ad authored by Francesco Carpanese's avatar Francesco Carpanese
Browse files

add function for toroidal field

git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11392 d63d8f72-b253-0410-a779-e742ad2e26cf
parent 534d3ba2
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ p = inputParser;
% effectively required inputs should have defaults as empty
p.addOptional('shot', [], @(x) (isnumeric(x) && isscalar(x) && (x == round(x)))); % integer
p.addOptional('run', [], @(x) (isnumeric(x) && isscalar(x) && (x == round(x)))); % integer
p.addOptional('ids_names', {'equilibrium', 'magnetics', 'pf_active','wall'}, @(x) (ischar(x) || iscell(x))); % char or cell array
p.addOptional('ids_names', {'equilibrium', 'magnetics', 'pf_active','wall', 'tf'}, @(x) (ischar(x) || iscell(x))); % char or cell array
p.parse;
defaults_tcv2ids = p.Results; % to keep track of defaults
......
function [ids_struct_out] = tcv_get_ids_supply(shot, ids_structures)
%% TODO
function [ids_struct_out] = tcv_get_ids_tf(shot, ids_structures)
ids_struct_out = ids_structures;
tmp = gdat(shot, 'b0');
ids_struct_out.b_field_tor_vacuum_r.data = tmp.data;
ids_struct_out.b_field_tor_vacuum_r.time = tmp.time;
\ No newline at end of file
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