Skip to content

Commit

Permalink
Fixed imosSalinityFromPTQC so that it also take into account any flag…
Browse files Browse the repository at this point in the history
… given to conductivity.
  • Loading branch information
ggalibert committed Jun 20, 2017
1 parent d7a253a commit e45ff0f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions AutomaticQC/imosSalinityFromPTQC.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
function [data, flags, paramsLog] = imosSalinityFromPTQC ( sample_data, data, k, type, auto )
%IMOSSALINITYFROMPTQC Flags salinity data which is flagged in pressure/depth and temperature.
%IMOSSALINITYFROMPTQC Flags salinity data which is flagged in pressure/depth, conductivity
% and temperature.
%
% Looks for highest flags from pressure/depth and temperature variables and give
% Looks for highest flags from pressure/depth, conductivity and temperature variables and give
% them to salinity
%
% Inputs:
Expand Down Expand Up @@ -105,9 +106,9 @@
% initialise all flags to non QC'd
flags = ones(lenData, 1, 'int8')*rawFlag;

% we look for flags from pressure and temperature data to give them
% we look for flags from pressure, conductivity and temperature data to give them
% to salinity as well
paramNames = {'DEPTH', 'PRES_REL', 'PRES', 'TEMP'};
paramNames = {'DEPTH', 'PRES_REL', 'PRES', 'TEMP', 'CNDC'};

for i=1:length(sample_data.(type))
% let's handle the case we have multiple same param distinguished by "_1",
Expand Down

0 comments on commit e45ff0f

Please sign in to comment.