OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
DtMask.h
Go to the documentation of this file.
1 /*
2  * DtMask.h
3  *
4  * Created on: Nov 3, 2016
5  * Author: ssander2
6  */
7 
8 #ifndef INCLUDE_DTMASK_H_
9 #define INCLUDE_DTMASK_H_
10 
11 #include "darktarget/DtAlgorithm.h"
12 
13 class DtAlgorithm;
14 class DtAlgLand;
15 class DtAlgOcean;
16 
18 {
19 public:
20  // algorithm thresholds
21  static constexpr float M01_STDV_THOLD = 0.0025;
22  static constexpr float M08_STDV_THOLD = 0.0025;
23  static constexpr float M08_HILAT_STDV_THOLD = 0.001;
24  static constexpr float M09_THOLD = 0.004;
25  static constexpr float M03_THOLD = 0.11;
26 
27  static constexpr float THRHLD550_STD = 0.0025;
28  static constexpr float THRHLD470 = 0.4;
29  static constexpr float THRHLD138 = 0.03;
30  static constexpr float THRHLD138_LOW = 0.005;
31  static constexpr float THRHLD_DUST = 0.75;
32  static constexpr float THRHLD_CIRRUS = 0.3;
33 
38  DtCloudMaskOcean(DtAlgorithm* process);
40 
44  int initialize();
45 
49  int compute( unsigned char& mask );
50 
51 protected:
52 
54 
55 };
56 
57 
59 {
60 public:
61 
62  // algorithm thresholds
63  static constexpr float THRHLD1380_STD = 0.003;
64  static constexpr float THRHLD1380 = 0.025;
65  static constexpr float THRHLD1380_LOW = 0.01;
66  static constexpr float THRHLD470_STD = 0.0025;
67  static constexpr float THRHLD470 = 0.4;
68 
69  unsigned char snowmask_;
70 
75  DtCloudMaskLand(DtAlgorithm* process);
77 
81  int initialize();
82 
86  int compute( unsigned char& mask );
87 
91  int compute_snowmask();
92 
93  unsigned char mask_cirrus_;
94 
95 protected:
96 
98 };
99 
100 
102 {
103 public:
104 
108  DtSedimentMask();
109 
113  DtSedimentMask(DtAlgorithm* process);
114 
118  ~DtSedimentMask ();
119 
123  int initialize();
124 
128  int compute(short &mask);
129 
130 protected:
131 
133 };
134 
135 
136 #endif /* INCLUDE_DTMASK_H_ */
static constexpr float M08_HILAT_STDV_THOLD
Definition: DtMask.h:23
static constexpr float THRHLD_CIRRUS
Definition: DtMask.h:32
int compute_snowmask()
Definition: DtMask.cpp:196
static constexpr float THRHLD470_STD
Definition: DtMask.h:66
static constexpr float M03_THOLD
Definition: DtMask.h:25
static constexpr float M01_STDV_THOLD
Definition: DtMask.h:21
static constexpr float THRHLD138
Definition: DtMask.h:29
static constexpr float THRHLD470
Definition: DtMask.h:67
static constexpr float THRHLD1380
Definition: DtMask.h:64
int initialize()
Definition: DtMask.cpp:272
int compute(short &mask)
Definition: DtMask.cpp:449
DtAlgorithm * p_
Definition: DtMask.h:97
static constexpr float THRHLD138_LOW
Definition: DtMask.h:30
DtAlgorithm * p_
Definition: DtMask.h:132
unsigned char mask_cirrus_
Definition: DtMask.h:93
static constexpr float THRHLD1380_STD
Definition: DtMask.h:63
a context in which it is NOT documented to do so subscript which cannot be easily calculated when extracting TONS attitude data from the Terra L0 files Corrected several defects in extraction of entrained ephemeris and and as HDF file for both the L1A and Geolocation enabling retrieval of South Polar DEM data Resolved Bug by changing to opent the geolocation file only after a successful read of the L1A and also by checking for fatal errors from not restoring C5 and to report how many of those high resolution values were water in the new WaterPresent SDS Added valid_range attribute to Land SeaMask Changed to bilinearly interpolate the geoid_height to remove artifacts at one degree lines Made corrections to const qualification of pointers allowed by new version of M API library Removed casts that are no longer for same not the geoid Corrected off by one error in calculation of high resolution offsets Corrected parsing of maneuver list configuration parameter Corrected to set Height SDS to fill values when geolocation when for elevation and land water mask
Definition: HISTORY.txt:114
unsigned char snowmask_
Definition: DtMask.h:69
static constexpr float THRHLD550_STD
Definition: DtMask.h:27
int initialize()
Definition: DtMask.cpp:65
int compute(unsigned char &mask)
Definition: DtMask.cpp:285
int compute(unsigned char &mask)
Definition: DtMask.cpp:91
static constexpr float THRHLD470
Definition: DtMask.h:28
static constexpr float M09_THOLD
Definition: DtMask.h:24
int initialize()
Definition: DtMask.cpp:438
DtAlgorithm * p_
Definition: DtMask.h:53
static constexpr float THRHLD1380_LOW
Definition: DtMask.h:65
static constexpr float M08_STDV_THOLD
Definition: DtMask.h:22
static constexpr float THRHLD_DUST
Definition: DtMask.h:31