diff --git a/Preprocessing/aquatrackaPP.m b/Preprocessing/aquatrackaPP.m index d7c314a5f..dc99ab366 100644 --- a/Preprocessing/aquatrackaPP.m +++ b/Preprocessing/aquatrackaPP.m @@ -62,7 +62,7 @@ offset(i) = str2double(readProperty(['offset' analogAquatracka{i}], ParamFile)); end -commentsAquatracka = {[ getCPHLcomment('factory','430nm','685nm') ' Data converted from analogic input with scaleFactor=' num2str(scaleFactor(1)) ', offset=' num2str(offset(1))) ' .'], ... +commentsAquatracka = {[ getCPHLcomment('factory','430nm','685nm') ' Data converted from analogic input with scaleFactor=' num2str(scaleFactor(1)) ', offset=' num2str(offset(1)) ' .'], ... ['Turbidity data in FTU '... 'computed from bio-optical sensor raw counts measurements using factory calibration coefficient. The '... 'fluorometre is used as a nephelometre equipped with a 440nm peak wavelength LED to irradiate. '], ... diff --git a/test/testOnlyCPHL.m b/test/testOnlyCPHL.m index 6bf88baa3..e26ebbe9c 100644 --- a/test/testOnlyCPHL.m +++ b/test/testOnlyCPHL.m @@ -111,6 +111,26 @@ function test_wqmdat(testCase, wqmdat_reader, wqmdat_v000_param, mode) assert(check_cphl(data)); end + function test_aquatrackapp(~,sbe19p_reader,sbe19p_v000_param,mode) + data = sbe19p_reader({sbe19p_v000_param},mode); + %fake volt_cphl variable + for k=1:length(data.variables) + if contains(data.variables{k}.name,'CPHL') + newvar = data.variables{k}; + newvar.name = 'volt_CHL'; + data.variables{end+1} = newvar; + break + end + end + output = aquatrackaPP({data},'qc',0); + data = output{1}; + comment = data.variables{end}.comment; + assert(check_cphl(data)); + assert(contains(comment,'analogic input')); + assert(contains(comment,'scaleFactor=')); + assert(contains(comment,'offset=')); + end + end end