From 269646ad19d380b2d0cf05ba1964d26255d7a61b Mon Sep 17 00:00:00 2001 From: Francesco Carpanese <francesco.carpanese@epfl.ch> Date: Tue, 5 Feb 2019 16:34:42 +0000 Subject: [PATCH] add function for toroidal field git-svn-id: https://spcsvn.epfl.ch/repos/TCV/gdat/trunk@11392 d63d8f72-b253-0410-a779-e742ad2e26cf --- crpptbx/TCV_IMAS/tcv2ids.m | 2 +- crpptbx/TCV_IMAS/tcv_get_ids_supply.m | 2 +- crpptbx/TCV_IMAS/tcv_get_ids_tf.m | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 crpptbx/TCV_IMAS/tcv_get_ids_tf.m diff --git a/crpptbx/TCV_IMAS/tcv2ids.m b/crpptbx/TCV_IMAS/tcv2ids.m index 00f7b7ca..4e2988ac 100644 --- a/crpptbx/TCV_IMAS/tcv2ids.m +++ b/crpptbx/TCV_IMAS/tcv2ids.m @@ -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 diff --git a/crpptbx/TCV_IMAS/tcv_get_ids_supply.m b/crpptbx/TCV_IMAS/tcv_get_ids_supply.m index 14bb3235..8d940e05 100644 --- a/crpptbx/TCV_IMAS/tcv_get_ids_supply.m +++ b/crpptbx/TCV_IMAS/tcv_get_ids_supply.m @@ -1,2 +1,2 @@ function [ids_struct_out] = tcv_get_ids_supply(shot, ids_structures) - +%% TODO diff --git a/crpptbx/TCV_IMAS/tcv_get_ids_tf.m b/crpptbx/TCV_IMAS/tcv_get_ids_tf.m new file mode 100644 index 00000000..be2865dc --- /dev/null +++ b/crpptbx/TCV_IMAS/tcv_get_ids_tf.m @@ -0,0 +1,7 @@ +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 -- GitLab