OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
qaa.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { QAA_S_PARAM = 1, QAA_COEFS_PARAM = 3, QAA_APH_CHECK = 8 }
 

Functions

int qaa_is_initialized (void)
 
int qaa_init (int i410, int i440, int i490, int i555, int i640)
 
int qaa_set_param (int param,...)
 
int qaa_v6 (int nbands, double *wavel, double *Rrs, double *aw, double *bbw, double *rrs, double *u, double *a, double *bb, unsigned char *flags)
 
int qaa_decomp (int nbands, double *wavel, double *rrs, double *a, double *aw, double *adg, double *aph, unsigned char *flags)
 
int qaaf_v6 (int nbands, float *wavel, float *Rrs, float *aw, float *bbw, float *rrs, float *u, float *a, float *bb, unsigned char *flags)
 
int qaaf_decomp (int nbands, float *wavel, float *rrs, float *a, float *aw, float *adg, float *aph, unsigned char *flags)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
QAA_S_PARAM 
QAA_COEFS_PARAM 
QAA_APH_CHECK 

Definition at line 11 of file qaa.h.

Function Documentation

◆ qaa_decomp()

int qaa_decomp ( int  nbands,
double *  wavel,
double *  rrs,
double *  a,
double *  aw,
double *  adg,
double *  aph,
unsigned char *  flags 
)

Quasi-Analytical Algorithm - decomposition of total absorption.

Parameters
[in]nbandsnumber of bands in spectrum
[in]wavelwavelength of spectrum (nbands)
[in]rrsbelow-water remote sensing reflectance (nbands)
[in]atotal absorption (nbands)
[in]awpure-water absorption (nbands)
[out]adggelbstuff absorption (nbands)
[out]aphphytoplankton absorption (nbands)
[out]flagsquality flags (will be modified) or NULL

This implements Table 3 of the Quasi-Analytical Algorithm. It decomposes the total absorption into phytoplankton absorption and gelbstuff absorption.

This implementation adds a consistency check based on the phytoplankton absorption at 443nm to improve the decomposition of total absorption.

Definition at line 380 of file qaa.c.

◆ qaa_init()

int qaa_init ( int  i410,
int  i440,
int  i490,
int  i555,
int  i670 
)

initalize Quasi-Analytical Algorithm v4

Parameters
[in]i4100-relative index in spectrum of 410 nm
[in]i4400-relative index in spectrum of 440 nm
[in]i4900-relative index in spectrum of 490 nm
[in]i5550-relative index in spectrum of 555 nm
[in]i6700-relative index in spectrum of 670 nm

This routine should be called to initialize various parameters that may be adjusted in the QAA algorithm or that must be known apriori. For example, the user must supply the indices for various required band numbers and whether to perform the iteration in the QAA-555 algorithm (normally yes).

Definition at line 132 of file qaa.c.

◆ qaa_is_initialized()

int qaa_is_initialized ( void  )

determine if qaa algorithm properly initialized

Returns
1 if qaa_init has been previously called; 0, otherwise

Definition at line 113 of file qaa.c.

◆ qaa_set_param()

int qaa_set_param ( int  param,
  ... 
)

set a parameter for Quasi-Analytical Algorithm

Parameters
[in]paramname of parameter

This routine should be called to initialize various parameters that may be adjusted in the QAA algorithm or that must be known apriori. For example, the user must supply the indices for various required band numbers. Optionally, the user may define there own values for some parameters, like S.

Presently the only parameter the user may set is the S value.

Definition at line 163 of file qaa.c.

◆ qaa_v6()

int qaa_v6 ( int  nbands,
double *  wavel,
double *  Rrs,
double *  aw,
double *  bbw,
double *  rrs,
double *  u,
double *  a,
double *  bb,
unsigned char *  flags 
)

Quasi-Analytical Algorithm v6.

Parameters
[in]nbandsnumber of bands in spectrum
[in]wavelwavelength of spectrum (nbands)
[in]Rrsabove-water remote sensing reflectance (nbands)
[in]awpure-water absorption (nbands)
[in]bbwpure-water back scattering (nbands)
[out]rrsbelow-water remote sensing reflectance (nbands)
[out]uratio (nbands)
[out]atotal absorption (nbands)
[out]bbbackscattering (nbands)
[out]flagsquality flags (will be modified) or NULL

This implements version 6 of the Quasi-Analytical Algorithm.

Definition at line 200 of file qaa.c.

◆ qaaf_decomp()

int qaaf_decomp ( int  nbands,
float *  wavel,
float *  rrs,
float *  a,
float *  aw,
float *  adg,
float *  aph,
unsigned char *  flags 
)

Quasi-Analytical Algorithm - decomposition of total absorption.

See also
qaa_decomp()

Definition at line 450 of file qaa.c.

◆ qaaf_v6()

int qaaf_v6 ( int  nbands,
float *  wavel,
float *  Rrs,
float *  aw,
float *  bbw,
float *  rrs,
float *  u,
float *  a,
float *  bb,
unsigned char *  flags 
)

Quasi-Analytical Algorithm v4.

See also
qaa_v6()

Definition at line 279 of file qaa.c.