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

force l'ecriture des variables LINCOEF_CONV avec OFFSET et SLOPE en majuscule,

corrige un bug sur la calibration ou A et B n'apparaissaient pas
parent a2090e2f
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,8 @@ tsg = getappdata( hMainFig, 'tsg_data');
% in tsg_initialisation now
% -------------------------------
var ={'SSJT_LINCOEF', 'CNDC_LINCOEF', 'SSTP_LINCOEF'};
lin_type = {'offset','slope'};
lin_type = {padding('OFFSET',tsg.dim.COEF_CONV_SIZE),...
padding('SLOPE',tsg.dim.COEF_CONV_SIZE)};
lin_val = [0,1];
% loop over each variables
......@@ -119,14 +120,11 @@ for i = 1:numel(var)
end
end
% check if var_LINCOEF_CONV not empty
% -----------------------------------
if isempty(tsg.([var{i} '_CONV']))
for j = 1:tsg.dim.LINCOEF
tsg.([var{i} '_CONV']) = ...
[tsg.([var{i} '_CONV']); padding(lin_type{j}, tsg.dim.COEF_CONV_SIZE)];
end
end
% rewrite LINCOEF's
% convert cell array of string to char array
% ------------------------------------------
tsg.([var{i} '_CONV']) = char(lin_type);
end
......
......@@ -30,8 +30,8 @@ coeff_type = ...
{padding('DATE',tsg.dim.COEF_CONV_SIZE);'G';'H';'I';'J';'F0';''}
};
% get preference choice for cabrations type popup
% -----------------------------------------------
% get preference choice for calibrations type popup
% -------------------------------------------------
pref = tsg.preference.coeff_type_value;
% dynamically fill variables
......
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