Skip to content
Snippets Groups Projects
Commit 85b59b79 authored by Luke Simons's avatar Luke Simons
Browse files

Changed handling of COCOS transformation in tcv_get_ids_nbi to use gdat cocos_out convention

parent efe1e626
No related branches found
No related tags found
1 merge request!195Resolve "Missing power launched and position field for NBI IDS"
Pipeline #265365 failed
...@@ -29,6 +29,12 @@ function [ids_from_tcv,varargout] = tcv2ids(shot,varargin); ...@@ -29,6 +29,12 @@ function [ids_from_tcv,varargout] = tcv2ids(shot,varargin);
% varargout{1}: return also the ids in array of structure with the names, to allow easy use of plotallids % varargout{1}: return also the ids in array of structure with the names, to allow easy use of plotallids
% %
imas_version_number=str2num(getenv('IMAS_VERSION'));
cocos_out_default=11;
if imas_version_number(1) >= 4
cocos_out_default=17;
end
% initialize input parser % initialize input parser
p = inputParser; p = inputParser;
% no required inputs here so one can call with empty args and get defaults parameters % no required inputs here so one can call with empty args and get defaults parameters
...@@ -37,7 +43,7 @@ ids_names = tcv_available_ids; ...@@ -37,7 +43,7 @@ ids_names = tcv_available_ids;
p.addOptional('shot', [], @(x) (isnumeric(x) && isscalar(x) && (x == round(x)))); % integer p.addOptional('shot', [], @(x) (isnumeric(x) && isscalar(x) && (x == round(x)))); % integer
p.addOptional('ids_names', ids_names, @(x) isempty(x) || iscell(x) ); % char or cell array p.addOptional('ids_names', ids_names, @(x) isempty(x) || iscell(x) ); % char or cell array
p.addOptional('error_bar', 'delta', @(x) isempty(x) || ischar(x) ); % char or cell array p.addOptional('error_bar', 'delta', @(x) isempty(x) || ischar(x) ); % char or cell array
p.addOptional('cocos_out', 11, @(x) isempty(x) || isnumeric(x) ); % char p.addOptional('cocos_out', cocos_out_default, @(x) isempty(x) || isnumeric(x) ); % char
p.addOptional('ipsign_out', 0, @(x) isempty(x) || (isscalar(x) && (x==0 || x==-1 || x==+1)) ); p.addOptional('ipsign_out', 0, @(x) isempty(x) || (isscalar(x) && (x==0 || x==-1 || x==+1)) );
p.addOptional('b0sign_out', 0, @(x) isempty(x) || (isscalar(x) && (x==0 || x==-1 || x==+1)) ); p.addOptional('b0sign_out', 0, @(x) isempty(x) || (isscalar(x) && (x==0 || x==-1 || x==+1)) );
p.addOptional('nverbose', 1, @(x) isempty(x) || isnumeric(x) ); p.addOptional('nverbose', 1, @(x) isempty(x) || isnumeric(x) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment