OC3
The OC3 adapter calculates Chlorophyll A from Polymer output
- processors.oc3.oc3.QAscores(spectra, wavelengths)
Quality assurance system for Rrs spectra
Original Author: Jianwei Wei, University of Massachusetts Boston Email: Jianwei.Wei@umb.edu Nov-01-2016
Translated from MATLAB to Python. James Runnalls, Eawag
Parameters
- spectralist
Rrs spectra for testing (units: sr^-1); a row vector at the wavelengths in ref_lambda
- wavelengthsarray
Wavelengths for spectra, axis 0 needs to equal length of spectra
Outputs
- maxCosfloat
maximum cosine values
- cosarr
cosine values for every ref_nRrs spectra
- clusterIDint
idenfification of water types (from 1-23)
- totScorefloat
total score assigned to spectra
- processors.oc3.oc3.interpolate_spectra(spectra, wavelengths, ref)
- processors.oc3.oc3.ocx(rsbg, a0, a1, a2, a3, a4)
- processors.oc3.oc3.process(env, params, l1product_path, l2product_files, out_path)
Apply OC3 adapter. 1. Uses OC3 to output CHL-A
Parameters
- params
Dictionary of parameters, loaded from input file
- env
Dictionary of environment parameters, loaded from input file
- l2product_files
Dictionary of Level 2 product files created by processors
- date
Run date
- processors.oc3.oc3.read_rrs_polymer(nc, width, height)