OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <DDProcess.h>

Collaboration diagram for DDProcess:
[legend]

Public Member Functions

 DDProcess ()
 
virtual ~DDProcess ()
 
int initialize ()
 
virtual int process ()
 

Public Attributes

string config_file_
 
string history_
 
string source_files_
 
string title_
 
bool bday_
 
bool bcloudmask_
 
bool bglintmask_
 
bool bgascorrect_
 
SENSOR instrument_
 
size_t lines_
 
size_t pixels_
 
size_t lprw_
 
algorithm alg_
 

Static Public Attributes

static const map< string, rhot_bandrhot_band_names
 
static const map< string, aot_bandaot_band_names
 
static const map< string, srf_bandsrf_band_names
 

Protected Member Functions

int query_granule ()
 
int create_nc4 (map< string, ddata * > imap)
 
int write_nc4 (map< string, ddata * > omap)
 
int write_decimated (vector< string > names, size_t &nwin)
 

Protected Attributes

map< int, NcDim > dmap_
 
DDSensorpsensor_
 
DDAncillarypancillary_
 
DDAlgorithmpl_
 
DDAlgorithmpo_
 
vector< stringout_products
 

Static Protected Attributes

static const vector< stringout_groups
 
static const map< string, dtypeinput_names
 
static const map< string, dtypedtdb_names
 

Detailed Description

Definition at line 116 of file DDProcess.h.

Constructor & Destructor Documentation

◆ DDProcess()

DDProcess ( )

Class constructor / destructor

Definition at line 91 of file DDProcess.cpp.

◆ ~DDProcess()

~DDProcess ( )
virtual

Definition at line 114 of file DDProcess.cpp.

Member Function Documentation

◆ create_nc4()

int create_nc4 ( map< string, ddata * >  imap)
protected

Initialize output data

Definition at line 534 of file DDProcess.cpp.

◆ initialize()

int initialize ( )

Initialize Input data

Definition at line 132 of file DDProcess.cpp.

◆ process()

int process ( )
virtual

Apply algorithm to data, produce product

Definition at line 262 of file DDProcess.cpp.

◆ query_granule()

int query_granule ( )
protected

Gather granule data essential for initialization.

Definition at line 193 of file DDProcess.cpp.

◆ write_decimated()

int write_decimated ( vector< string names,
size_t &  nwin 
)
protected

Write decimated datasets to output file.

Definition at line 833 of file DDProcess.cpp.

◆ write_nc4()

int write_nc4 ( map< string, ddata * >  omap)
protected

Write a single line to the output file.

Definition at line 757 of file DDProcess.cpp.

Member Data Documentation

◆ alg_

algorithm alg_

Definition at line 135 of file DDProcess.h.

◆ aot_band_names

const map< string, aot_band > aot_band_names
static
Initial value:
= {
{"aot_410", aot_band::W410},
{"aot_490", aot_band::W490},
{"aot_550", aot_band::W550},
{"aot_670", aot_band::W670},
{"aot_865", aot_band::W865},
{"aot_1240", aot_band::W1240},
{"aot_1610", aot_band::W1610},
{"aot_2250", aot_band::W2250},
}

Definition at line 157 of file DDProcess.h.

◆ bcloudmask_

bool bcloudmask_

Definition at line 128 of file DDProcess.h.

◆ bday_

bool bday_

Definition at line 127 of file DDProcess.h.

◆ bgascorrect_

bool bgascorrect_

Definition at line 130 of file DDProcess.h.

◆ bglintmask_

bool bglintmask_

Definition at line 129 of file DDProcess.h.

◆ config_file_

string config_file_

Definition at line 120 of file DDProcess.h.

◆ dmap_

map<int,NcDim> dmap_
protected

Definition at line 163 of file DDProcess.h.

◆ dtdb_names

const map< string, dtype > dtdb_names
staticprotected
Initial value:
= {
{"quality_flag", dtype::SHORT},
{"aerosol_type", dtype::SHORT},
{"l2_flags", dtype::UINT},
{"fmf_550", dtype::FLOAT},
{"angstrom", dtype::FLOAT},
{"ndvi", dtype::FLOAT},
{"residual_error", dtype::FLOAT},
}

Definition at line 176 of file DDProcess.h.

◆ history_

string history_

Definition at line 121 of file DDProcess.h.

◆ input_names

const map< string, dtype > input_names
staticprotected
Initial value:
= {
{"cloud_mask", dtype::UBYTE},
{"land_water", dtype::UBYTE},
{"relative_azimuth", dtype::FLOAT},
{"solar_zenith", dtype::FLOAT},
{"sensor_zenith", dtype::FLOAT},
{"scattering_angle", dtype::FLOAT},
{"elevation", dtype::FLOAT},
{"wind_speed", dtype::FLOAT},
{"wind_direction", dtype::FLOAT},
{"water_vapor", dtype::FLOAT},
{"ozone", dtype::FLOAT},
{"surface_pressure", dtype::FLOAT},
{"chlorophyll", dtype::FLOAT},
}

Definition at line 175 of file DDProcess.h.

◆ instrument_

SENSOR instrument_

Definition at line 131 of file DDProcess.h.

◆ lines_

size_t lines_

Definition at line 132 of file DDProcess.h.

◆ lprw_

size_t lprw_

Definition at line 134 of file DDProcess.h.

◆ out_groups

const vector< string > out_groups
staticprotected
Initial value:
= { "geolocation", "ancillary",
"observations", "geophysical_data", "statistics" }

Definition at line 174 of file DDProcess.h.

◆ out_products

vector<string> out_products
protected

Definition at line 173 of file DDProcess.h.

◆ pancillary_

DDAncillary* pancillary_
protected

Definition at line 169 of file DDProcess.h.

◆ pixels_

size_t pixels_

Definition at line 133 of file DDProcess.h.

◆ pl_

DDAlgorithm* pl_
protected

Definition at line 170 of file DDProcess.h.

◆ po_

DDAlgorithm* po_
protected

Definition at line 171 of file DDProcess.h.

◆ psensor_

DDSensor* psensor_
protected

Objects

Definition at line 168 of file DDProcess.h.

◆ rhot_band_names

const map< string, rhot_band > rhot_band_names
static
Initial value:
= {
{"rhot_410", rhot_band::W410},
{"rhot_445", rhot_band::W445},
{"rhot_490", rhot_band::W490},
{"rhot_550", rhot_band::W550},
{"rhot_670", rhot_band::W670},
{"rhot_865", rhot_band::W865},
{"rhot_1240", rhot_band::W1240},
{"rhot_1380", rhot_band::W1380},
{"rhot_1610", rhot_band::W1610},
{"rhot_2250", rhot_band::W2250},
}

Wavelength band names processed

Definition at line 156 of file DDProcess.h.

◆ source_files_

string source_files_

Definition at line 122 of file DDProcess.h.

◆ srf_band_names

const map< string, srf_band > srf_band_names
static
Initial value:
= {
{"surface_410", srf_band::W410},
{"surface_490", srf_band::W490},
{"surface_670", srf_band::W670},
{"surface_2250", srf_band::W2250},
}

Definition at line 158 of file DDProcess.h.

◆ title_

string title_

Definition at line 126 of file DDProcess.h.


The documentation for this class was generated from the following files:
@ SHORT
signed 2 byte integer
@ UBYTE
unsigned 1 byte int
@ FLOAT
single precision floating point number
@ UINT
unsigned 4-byte int