Skip to content
Snippets Groups Projects
Commit 6530e66f authored by Yves Gouriou's avatar Yves Gouriou
Browse files

Mise a jour du fichier Bug

parent 6f1cdf2b
No related branches found
No related tags found
No related merge requests found
......@@ -2,3 +2,40 @@ $Id$
After plotting climatology, temperature plot stay in foreground when map was displayed
2008-10-20 yves Gouriou
CALIBRATION.M
% Test if Conductivity or temperature has been calibrated
% -------------------------------------------------------
indC = find( isnan( tsg.CNDC_CAL ) == 0 ); %vrifier taille de indC et indT
indT = find( isnan( tsg.SSJT_CAL ) == 0 );
if ~isempty( indC ) || ~isempty( indT )
% If SSJT has not been calibrated used SSJT and not SSJT_CAL to compute
% SSPS_CAL
% ---------------------------------------------------------------------
temp = tsg.SSJT_CAL;
ind = find( isnan( temp ) == 0 );
if isempty(ind)
temp = tsg.SSJT;
end
% If CNDC has not been calibrated used CNDC and not CNDC_CAL to compute
% SSPS_CAL
% ---------------------------------------------------------------------
cond = tsg.CNDC_CAL;
ind = find( isnan( temp ) == 0 ); % temp doit etre remplace par cond
if isempty(ind)
cond = tsg.CNDC;
end
if ~isempty( temp ) && ~isempty( cond )
tsg.SSPS_CAL = sw_salt( ...
tsg.CNDC_CAL/sw_c3515(), t90TOt68(temp), zeros(size(tsg.CNDC_CAL)));
% tsg.CNDC_CAL doit tre remplac par cond
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