OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <DbAlgorithm.h>

Inheritance diagram for DbAlgOcean:
[legend]
Collaboration diagram for DbAlgOcean:
[legend]

Classes

struct  osOut
 

Public Member Functions

 DbAlgOcean ()
 
 ~DbAlgOcean ()
 
int initialize (map< string, ddata * > imap)
 
vector< stringget_products ()
 
map< string, ddata * > process (vector< size_t > start, vector< size_t > count, map< string, ddata * > imap)
 
- Public Member Functions inherited from DbAlgorithm
 DbAlgorithm ()
 
virtual ~DbAlgorithm ()
 
int compute_gas_correction ()
 
- Public Member Functions inherited from DDAlgorithm
 DDAlgorithm ()
 
virtual ~DDAlgorithm ()
 

Public Attributes

osOut oOut_ [NDBMDL+1]
 
float chl_
 
float bathy_
 
short mask_cm_
 
short mask_cm_osi_
 
DbCloudMaskOceancm_
 
- Public Attributes inherited from DbAlgorithm
int ler_start_ [2]
 
int ler_edge_ [2]
 
int dateline_
 
float cphi_
 
float cphir_
 
float phs_
 
float phsr_
 
float NC_ [DB_NC_BANDS]
 
float scatter_angle_
 
float glint_angle_
 
float glint_refl_
 
float ndvi_
 
dbTablesLUTmt_lut_
 
dbSurfacePressureLUTsp_lut_
 
dbSurfCoeffLimitedscl_lut_
 
dbGeozoneLUTgz_lut_
 
dbViirsSurfReflLimitedvsr_lut_
 
dbModisSurfReflLimitedmsr_lut_
 
dbOceanAerosolLUMAoaLut_ [NDBMDL]
 
dbBathymetryLUTbath_lut_
 
dbChlLUTchl_lut_
 

Protected Member Functions

int initialize_LUT_data ()
 
float calc_glint_refl (size_t iy, size_t ix, int &status)
 
int run_inversion (size_t iy, size_t ix, dbOceanAerosolLUMA *lut, osOut *iout)
 
int linfit (int size, float x[], float y[], float r[])
 
float calc_turbid_residual (float sza, float r488, float r1240, float r1600, float r2250, float r550, int &status)
 
int set_fill_out ()
 
- Protected Member Functions inherited from DbAlgorithm
int initialize_LUT_data (map< string, ddata * > imap)
 
int locate (int size, float y[], float x, int &status)
 
int compute_pressure (float height, float &sigma, float &ps, float &theta)
 
int compute_glint_angle (float &glint_angle)
 
int compute_scatter_angle (float &scat_angle)
 
- Protected Member Functions inherited from DDAlgorithm
int get_inputs (vector< size_t > start, vector< size_t > count, map< string, ddata * > imap)
 
map< string, ddata * > set_outputs ()
 
map< string, ddata * > set_fills ()
 

Additional Inherited Members

- Static Public Attributes inherited from DbAlgorithm
static constexpr int No_byte = 6
 
static constexpr int Fmax = 150
 
static constexpr int Lmax = 210
 
static constexpr int Fbmax = 1500
 
static constexpr int Lbmax = 2100
 
static constexpr int No_byte_O = 5
 
static constexpr float delta = -0.000001
 
static constexpr float SolarZenithAngleZEPS = 84.000001
 
static constexpr float NDVI1_CUTOFF = 0.18
 
static constexpr float NDVI2_CUTOFF = 0.35
 
static const float xzlog [10]
 
static const float xlog [8]
 
static const float htab [8] = {0.0, 11.0, 20.0, 32.0, 47.0, 51.0, 71.0, 84.852}
 
static const float ttab [8]
 
static const float ptab [8]
 
static const float gtab [8] = {-6.5, 0.0, 1.0, 2.8, 0.0, -2.8, -2.0, 0.0}
 
- Protected Attributes inherited from DDAlgorithm
size_t lines_
 
size_t pixels_
 
float rfl_ [NTWL]
 
float rfla_ [NTWL][3][3]
 
float gasc_ [NTWL]
 
float lat_
 
float lon_
 
float solz_
 
float senz_
 
float raa_
 
float height_
 
float scatt_
 
float ws_
 
float pwv_
 
float oz_
 
float ps_
 
int month_
 
bool bgascorrect_
 
bool bglintmask_
 
bool bcloudmask_
 
bool btest_
 
unsigned char cloud_mask_
 
short qual_flag_
 
short aerosol_type_
 
short error_flag_
 
unsigned int l2_flags_
 
float scatter_ang_
 
float glint_ang_
 
float sse_
 
float fmf_
 
float aot_550_
 
float ae1_
 
float ae2_
 
float ndv_
 
float chlor_
 
float ssa_ [NLWL+1]
 
float sr_ [NLWL+1]
 
float aot_ [NOWL+1]
 

Detailed Description

Definition at line 185 of file DbAlgorithm.h.

Constructor & Destructor Documentation

◆ DbAlgOcean()

Class constructor

Definition at line 54 of file DbAlgOcean.cpp.

◆ ~DbAlgOcean()

~DbAlgOcean ( )

Class destructor

Definition at line 65 of file DbAlgOcean.cpp.

Member Function Documentation

◆ calc_glint_refl()

float calc_glint_refl ( size_t  iy,
size_t  ix,
int &  status 
)
protected

Calculate glint reflectance

Definition at line 957 of file DbAlgOcean.cpp.

◆ calc_turbid_residual()

float calc_turbid_residual ( float  sza,
float  r488,
float  r1240,
float  r1600,
float  r2250,
float  r550,
int &  status 
)
protected

Compute turbidity residual

Definition at line 992 of file DbAlgOcean.cpp.

◆ get_products()

vector<string> get_products ( )
inlinevirtual

Return a list of product names generated by the algorithm

Reimplemented from DbAlgorithm.

Definition at line 207 of file DbAlgorithm.h.

◆ initialize()

int initialize ( map< string, ddata * >  imap)
virtual

Initialize Input data

Reimplemented from DbAlgorithm.

Definition at line 84 of file DbAlgOcean.cpp.

◆ initialize_LUT_data()

int initialize_LUT_data ( )
protected

Read LUT files into their respective data structures.

Definition at line 111 of file DbAlgOcean.cpp.

◆ linfit()

int linfit ( int  size,
float  x[],
float  y[],
float  r[] 
)
protected

Compute linear fit to data in x and y arrays

Definition at line 1023 of file DbAlgOcean.cpp.

◆ process()

map< string, ddata * > process ( vector< size_t >  start,
vector< size_t >  count,
map< string, ddata * >  imap 
)
virtual

Compute ocean aerosol Deep Blue algorithm

Reimplemented from DbAlgorithm.

Definition at line 143 of file DbAlgOcean.cpp.

◆ run_inversion()

int run_inversion ( size_t  iy,
size_t  ix,
dbOceanAerosolLUMA lut,
osOut iout 
)
protected

Run inversion algorithm for the selected pixel

Definition at line 442 of file DbAlgOcean.cpp.

◆ set_fill_out()

int set_fill_out ( )
protected

Set output to fill values

Definition at line 1051 of file DbAlgOcean.cpp.

Member Data Documentation

◆ bathy_

float bathy_

Definition at line 231 of file DbAlgorithm.h.

◆ chl_

float chl_

Definition at line 230 of file DbAlgorithm.h.

◆ cm_

Definition at line 235 of file DbAlgorithm.h.

◆ mask_cm_

short mask_cm_

Definition at line 232 of file DbAlgorithm.h.

◆ mask_cm_osi_

short mask_cm_osi_

Definition at line 233 of file DbAlgorithm.h.

◆ oOut_

osOut oOut_[NDBMDL+1]

Definition at line 228 of file DbAlgorithm.h.


The documentation for this class was generated from the following files: