diff --git a/tsg_io/readTsgDataLabview.m b/tsg_io/readTsgDataLabview.m index 346487eca1622c09e67181347c50d55ae9546d81..9ba7b861d3f94f81bf24eaa2a950daf43919fc8c 100644 --- a/tsg_io/readTsgDataLabview.m +++ b/tsg_io/readTsgDataLabview.m @@ -86,10 +86,15 @@ if fid ~= -1 tsg.SSJT = sst; tsg.SSPS = sss; tsg.SPDC = sog; - - % Remplacer la valeur par tsg.qc.code.NOCONTROL - tsg.SSPS_QC = tsg.qc.Code.NO_CONTROL * ones(nblig,1); + % Set active code to NOCONTROL + % ---------------------------- + tsg.qc.active.Code = get(tsg.qc.hash, 'NO_CONTROL', 'code'); + + % Set salinity QC (SSPS_QC) par NOCONTROL code + % -------------------------------------------- + tsg.SSPS_QC = tsg.qc.active.Code * ones(nblig,1); + % populate tsg.file structure % --------------------------- tsg.file.name = filename;