Newer
Older

jacques.grelet_ird.fr
committed
$Id$

jacques.grelet_ird.fr
committed
After plotting climatology, temperature plot stay in foreground when map was displayed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2008-10-20 yves Gouriou
CALIBRATION.M
% Test if Conductivity or temperature has been calibrated
% -------------------------------------------------------
indC = find( isnan( tsg.CNDC_CAL ) == 0 ); %vérifier 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
20/11/2008 J Grelet
--------------------
??? In an assignment A(:) = B, the number of elements in A and B
must be the same.
Error in ==> tsgqc>Cal_OffMenuCallback at 1603
tsg.CNDC_LINCOEF(1) = str2num(get( hetCalCNDCSlope, 'String'));