From c24468afe7dab566642265da829382267c72fc1c Mon Sep 17 00:00:00 2001 From: Jacques Grelet <jacques.grelet@ird.fr> Date: Thu, 17 Jan 2008 13:42:19 +0000 Subject: [PATCH] update use of quality objet used in tsg.qc.hash --- tsg_io/readTsgDataLabview.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tsg_io/readTsgDataLabview.m b/tsg_io/readTsgDataLabview.m index 346487e..9ba7b86 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; -- GitLab