Skip to content
Snippets Groups Projects
  • Yves Gouriou's avatar
    ff253b83
    Variables ADJUSTED · ff253b83
    Yves Gouriou authored
    Ces variables ne contiennent plus que des données ayant été corrigées via le module de correction.
    Les données n'ayant pas été corrigées sont mises à NaN dans ces variables ADJUSTED
    ff253b83
    History
    Variables ADJUSTED
    Yves Gouriou authored
    Ces variables ne contiennent plus que des données ayant été corrigées via le module de correction.
    Les données n'ayant pas été corrigées sont mises à NaN dans ces variables ADJUSTED
BUGS 2.23 KiB
$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 ); %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'));
	
9/01/2009
---------
The name of the directory cannot be identical to the name of the program.
It cannot be named 'tsgqc'. Otherwise there is a problem to get the
directory of the program. See the following lines :

fulltsgqcname = mfilename('fullpath');
DEFAULT_PATH_FILE = strrep(fulltsgqcname, tsgqcname, '') ;

9/01/2009
---------
La touche CANCEL the calibration rend les variables _CAL
EMPTY.

En fait si à l'ouverture du fichier une vzariable CAL existe,
que l'on veuille plusieurs tests et revenir à la variable _CAL
intiale ce n'est pas possible. La réinitialisation est sévère !

IL faut 2 boutons :
1 - BACK -One step backward
2 - CANCEL - Empties the varaibalbe _CAL

9/01/2009
---------
The correction is applied on SSPS, SSJT, SSTP data but not
on _CAL data