NASA Logo
Ocean Color Science Software

ocssw V2022
fluorescence.c File Reference
#include "l12_proto.h"
#include <gsl/gsl_fit.h>
Include dependency graph for fluorescence.c:

Go to the source code of this file.

Macros

#define PARW1   400
 
#define PARW2   700
 
#define PARWN   (PARW2-PARW1)+1
 

Functions

void get_fit_coef (float *x, float *y, int n, float *coef)
 
void get_unc_fsat (l2str *l2rec, float uflh[])
 
void get_fsat (l2str *l2rec, float flh[])
 
void get_fqy (l2str *l2rec, float fqy[])
 

Macro Definition Documentation

◆ PARW1

#define PARW1   400

Minimum wavelength for PAR

Definition at line 18 of file fluorescence.c.

◆ PARW2

#define PARW2   700

Maximum wavelength for PAR

Definition at line 19 of file fluorescence.c.

◆ PARWN

#define PARWN   (PARW2-PARW1)+1

Number of wavelengths included in PAR

Definition at line 20 of file fluorescence.c.

Function Documentation

◆ get_fit_coef()

void get_fit_coef ( float *  x,
float *  y,
int  n,
float *  coef 
)

Definition at line 31 of file fluorescence.c.

◆ get_fqy()

void get_fqy ( l2str *  l2rec,
float  fqy[] 
)

get_fqy - function to return fluorescence quantum yield for the MODIS, MERIS, OLCI and OCI instruments internally calls the calc_fsat and get_ipar functions

Parameters
l2rec
fqy

Definition at line 258 of file fluorescence.c.

◆ get_fsat()

void get_fsat ( l2str *  l2rec,
float  flh[] 
)

get_flh - computes normalized fluorescence line height for MODIS, MERIS, OLCI and OCI computation based on nLw measurements (thus the normalized moniker)

Parameters
l2rec
flh

Definition at line 168 of file fluorescence.c.

◆ get_unc_fsat()

void get_unc_fsat ( l2str *  l2rec,
float  uflh[] 
)

the nflh algorithm requires nLw values from 665, 680 and 709nm

if the pixel is already masked, or any of the input nLw values are less than -0.01, set the PRODFAIL flag and move along

Definition at line 62 of file fluorescence.c.