ocssw
V2022
|
Classes | |
struct | SSESData |
Typedefs | |
typedef bool(* | get_valid) (const l1str &, int, int, int) |
typedef float(* | get_value) (const l1str &, int, int, int) |
Enumerations | |
enum | product_types { SST, SST3, SST4 } |
Functions | |
std::vector< float > & | month_data () |
std::string | get_sensor (int key) |
float | btrefdiffv6 (int32_t ip, float BT39, float BT40, const l1str *l1rec, int fullscanpix) |
void | get_var_mask (int *mask, const l1str &l1str, size_t npix, int nbands, int ib, get_valid get_mask) |
void | get_var_vals (float *BT, const l1str &l1str, size_t npix, int nbands, int ib, get_value get_val) |
void | get_window_1D_max (float *maxs_1d, const float *inp1d, const int *mask1d, size_t npix, size_t radius) |
void | get_total_2d_max (float *max_global, const float *inp2d, size_t npix, size_t nscan, size_t center, size_t radius) |
void | get_window_1D_min (float *mins_1d, const float *inp1d, const int *mask1d, size_t npix, size_t radius) |
void | get_total_2d_min (float *min_global, const float *inp2d, size_t npix, size_t nscan, size_t center, size_t radius) |
void | get_std_box (const float *inp2d, const int *mask2d, size_t npix, size_t nscan, size_t radius_x, size_t radius_y, float *out, size_t center, l1qstr *l1qrec) |
void | read_sst_bands (const std::string &sat, std::unordered_map< std::string, int > &bands) |
template<class T > | |
std::ostream & | operator<< (std::ostream &stream, const std::vector< T > &data) |
Detailed Description
Contains supportive functions and constants.
Typedef Documentation
◆ get_valid
Definition at line 215 of file sst_cloud_mask_utils.hpp.
◆ get_value
typedef float(* get_value) (const l1str &, int, int, int) |
Definition at line 216 of file sst_cloud_mask_utils.hpp.
Enumeration Type Documentation
◆ product_types
enum product_types |
Enumerator | |
---|---|
SST | |
SST3 | |
SST4 |
Definition at line 208 of file sst_cloud_mask_utils.hpp.
Function Documentation
◆ btrefdiffv6()
float btrefdiffv6 | ( | int32_t | ip, |
float | BT39, | ||
float | BT40, | ||
const l1str * | l1rec, | ||
int | fullscanpix | ||
) |
Legacy BT diff test with interpolation adjutment.
- Parameters
-
ip - pixel BT39 - Bt39 BT40 - Bt40 l1rec - l1 record fullscanpix - full scan size
- Returns
- float
Definition at line 31 of file sst_cloud_mask_utils.cpp.
◆ get_sensor()
std::string get_sensor | ( | int | key | ) |
Get the sensor string.
- Parameters
-
key - integer sensor ID
- Returns
- std::string
Definition at line 20 of file sst_cloud_mask_utils.cpp.
◆ get_std_box()
void get_std_box | ( | const float * | inp2d, |
const int * | mask2d, | ||
size_t | npix, | ||
size_t | nscan, | ||
size_t | radius_x, | ||
size_t | radius_y, | ||
float * | out, | ||
size_t | center, | ||
l1qstr * | l1qrec | ||
) |
Compute standard deviation in a window.
- Parameters
-
inp2d - input array mask2d - mask npix - pixel in a line (x dim) nscan - queue size ( y dim) radius_x - radius along npix radius_y - radiis along nscan out - STD center - Center of the queu l1qrec - queue struct
Definition at line 121 of file sst_cloud_mask_utils.cpp.
◆ get_total_2d_max()
void get_total_2d_max | ( | float * | max_global, |
const float * | inp2d, | ||
size_t | npix, | ||
size_t | nscan, | ||
size_t | center, | ||
size_t | radius | ||
) |
Get the max value of center line with 2D sliding window using a 1D max queue computed with get_window_1D_max.
- Parameters
-
max_global - max values, out inp2d - input queue, obtained from get_window_1D_max npix - number of pixels nscan - queue size/ nubmer of scans center - center of the line radius - window size
Definition at line 72 of file sst_cloud_mask_utils.cpp.
◆ get_total_2d_min()
void get_total_2d_min | ( | float * | min_global, |
const float * | inp2d, | ||
size_t | npix, | ||
size_t | nscan, | ||
size_t | center, | ||
size_t | radius | ||
) |
the same as get_total_2d_max but for min
Definition at line 105 of file sst_cloud_mask_utils.cpp.
◆ get_var_mask()
void get_var_mask | ( | int * | mask, |
const l1str & | l1str, | ||
size_t | npix, | ||
int | nbands, | ||
int | ib, | ||
get_valid | get_mask | ||
) |
Get the mask (line) of a BT.
- Parameters
-
mask - mask l1str - l1 record npix - number of pixel in a line nbands - number of bands ib - band number get_mask - mask function ptr
Definition at line 43 of file sst_cloud_mask_utils.cpp.
◆ get_var_vals()
void get_var_vals | ( | float * | BT, |
const l1str & | l1str, | ||
size_t | npix, | ||
int | nbands, | ||
int | ib, | ||
get_value | get_val | ||
) |
the same as get_var_mask but gets values
Definition at line 49 of file sst_cloud_mask_utils.cpp.
◆ get_window_1D_max()
void get_window_1D_max | ( | float * | maxs_1d, |
const float * | inp1d, | ||
const int * | mask1d, | ||
size_t | npix, | ||
size_t | radius | ||
) |
Compute max values within a 1D window in one line in a queue.
- Parameters
-
maxs_1d - output queue inp1d - inputd queu mask1d - input mask npix - number of pixels radius - radius of the sliding window
Definition at line 55 of file sst_cloud_mask_utils.cpp.
◆ get_window_1D_min()
void get_window_1D_min | ( | float * | mins_1d, |
const float * | inp1d, | ||
const int * | mask1d, | ||
size_t | npix, | ||
size_t | radius | ||
) |
the same as get_window_1D_max but for min
Definition at line 87 of file sst_cloud_mask_utils.cpp.
◆ month_data()
std::vector< float > & month_data | ( | ) |
month variable for the desicion tree traversal
- Returns
Definition at line 18 of file sst_cloud_mask_utils.cpp.
◆ operator<<()
std::ostream& cldmsk::operator<< | ( | std::ostream & | stream, |
const std::vector< T > & | data | ||
) |
prints a vector
- Template Parameters
-
T
- Parameters
-
stream - out stream data - vector
- Returns
- std::ostream&
Definition at line 188 of file sst_cloud_mask_utils.hpp.
◆ read_sst_bands()
void read_sst_bands | ( | const std::string & | sat, |
std::unordered_map< std::string, int > & | bands | ||
) |
Definition at line 166 of file sst_cloud_mask_utils.cpp.
Variable Documentation
◆ all_sensors
const std::unordered_map<std::string, std::unordered_set<int> > all_sensors |
Definition at line 154 of file sst_cloud_mask_utils.hpp.
◆ bands_set
const std::unordered_map<std::string, const std::unordered_map<std::string, int> > bands_set |
Definition at line 85 of file sst_cloud_mask_utils.hpp.
◆ Bt11unif1
const float Bt11unif1 = 0.7 |
Definition at line 130 of file sst_cloud_mask_utils.hpp.
◆ Bt11unif2
const float Bt11unif2 = 1.9 |
Definition at line 132 of file sst_cloud_mask_utils.hpp.
◆ Bt12unif1
const float Bt12unif1 = 0.7 |
Definition at line 131 of file sst_cloud_mask_utils.hpp.
◆ Bt12unif2
const float Bt12unif2 = 1.9 |
Definition at line 133 of file sst_cloud_mask_utils.hpp.
◆ Bt37unif1
const float Bt37unif1 = 0.7 |
Definition at line 134 of file sst_cloud_mask_utils.hpp.
◆ Bt37unif2
const float Bt37unif2 = 1.9 |
Definition at line 135 of file sst_cloud_mask_utils.hpp.
◆ Bt39unif1
const float Bt39unif1 = 0.7 |
Definition at line 136 of file sst_cloud_mask_utils.hpp.
◆ Bt39unif2
const float Bt39unif2 = 1.9 |
Definition at line 138 of file sst_cloud_mask_utils.hpp.
◆ Bt40unif1
const float Bt40unif1 = 0.7 |
Definition at line 137 of file sst_cloud_mask_utils.hpp.
◆ Bt40unif2
const float Bt40unif2 = 1.9 |
Definition at line 139 of file sst_cloud_mask_utils.hpp.
◆ bt_box_sizes
const std::unordered_map<std::string, size_t> bt_box_sizes |
Definition at line 107 of file sst_cloud_mask_utils.hpp.
◆ bt_mask
◆ bt_value
◆ Btmax
const float Btmax = 37.0 |
Definition at line 114 of file sst_cloud_mask_utils.hpp.
◆ Btmax40
const float Btmax40 = 35.0 |
Definition at line 115 of file sst_cloud_mask_utils.hpp.
◆ Btmin
const float Btmin = -4.0 |
Definition at line 113 of file sst_cloud_mask_utils.hpp.
◆ cirrus_mask
Definition at line 218 of file sst_cloud_mask_utils.hpp.
◆ cirrus_value
Definition at line 221 of file sst_cloud_mask_utils.hpp.
◆ cldrh_mask
◆ cldrh_value
Definition at line 244 of file sst_cloud_mask_utils.hpp.
◆ cldthresh
const float cldthresh = -1.0 |
Definition at line 82 of file sst_cloud_mask_utils.hpp.
◆ cldthresh_list
const std::unordered_map<std::string, float> cldthresh_list |
Definition at line 83 of file sst_cloud_mask_utils.hpp.
◆ dBt4max
const float dBt4max = 8.0 |
Definition at line 123 of file sst_cloud_mask_utils.hpp.
◆ dBt4min
const float dBt4min = 0.0 |
Definition at line 122 of file sst_cloud_mask_utils.hpp.
◆ dBtmax
const float dBtmax = 3.6 |
Definition at line 121 of file sst_cloud_mask_utils.hpp.
◆ dBtmin
const float dBtmin = 0.0 |
Definition at line 120 of file sst_cloud_mask_utils.hpp.
◆ dBtrefmax
const float dBtrefmax = 10.0 |
Definition at line 141 of file sst_cloud_mask_utils.hpp.
◆ dBtrefmin
const float dBtrefmin = -1.1 |
Definition at line 140 of file sst_cloud_mask_utils.hpp.
◆ el_corr_modis_t_1
const float el_corr_modis_t_1 = 0.4452 |
Definition at line 163 of file sst_cloud_mask_utils.hpp.
◆ el_corr_modis_t_2
const float el_corr_modis_t_2 = 0.2593 |
Definition at line 164 of file sst_cloud_mask_utils.hpp.
◆ equatorialEast
const float equatorialEast = 105.0 |
Definition at line 145 of file sst_cloud_mask_utils.hpp.
◆ equatorialNorth
const float equatorialNorth = 30.0 |
Definition at line 142 of file sst_cloud_mask_utils.hpp.
◆ equatorialSouth
const float equatorialSouth = -10.0 |
Definition at line 143 of file sst_cloud_mask_utils.hpp.
◆ equatorialWest
const float equatorialWest = -105.0 |
Definition at line 144 of file sst_cloud_mask_utils.hpp.
◆ get_non_BT_vars
const std::unordered_map<std::string, float *(*)(const l1str &)> get_non_BT_vars |
Definition at line 260 of file sst_cloud_mask_utils.hpp.
◆ glintmax
const float glintmax = 0.005 |
Definition at line 119 of file sst_cloud_mask_utils.hpp.
◆ hisenz
const float hisenz = 55.0 |
Definition at line 109 of file sst_cloud_mask_utils.hpp.
◆ invalid_val
Definition at line 146 of file sst_cloud_mask_utils.hpp.
◆ max_bt
Definition at line 147 of file sst_cloud_mask_utils.hpp.
◆ max_lt
Definition at line 150 of file sst_cloud_mask_utils.hpp.
◆ min_bt
Definition at line 148 of file sst_cloud_mask_utils.hpp.
◆ min_lt
Definition at line 149 of file sst_cloud_mask_utils.hpp.
◆ modis_sensors
const std::unordered_set<int> modis_sensors |
Definition at line 151 of file sst_cloud_mask_utils.hpp.
◆ month_data_
std::vector<float> month_data_ |
Definition at line 17 of file sst_cloud_mask_utils.cpp.
◆ platforms
const std::unordered_map<int, std::string> platforms |
◆ rho_mask
◆ rho_value
Definition at line 236 of file sst_cloud_mask_utils.hpp.
◆ scan_time_modis_t_day1
const double scan_time_modis_t_day1 = 972777600 |
Definition at line 161 of file sst_cloud_mask_utils.hpp.
◆ scan_time_modis_t_day2
const double scan_time_modis_t_day2 = 993945600 |
Definition at line 162 of file sst_cloud_mask_utils.hpp.
◆ solznight
const float solznight = 85.0 |
Definition at line 112 of file sst_cloud_mask_utils.hpp.
◆ SST3diff1
const float SST3diff1 = 0.8 |
Definition at line 128 of file sst_cloud_mask_utils.hpp.
◆ SST3diff2
const float SST3diff2 = 1.0 |
Definition at line 129 of file sst_cloud_mask_utils.hpp.
◆ SST4diff1
const float SST4diff1 = -0.8 |
Definition at line 126 of file sst_cloud_mask_utils.hpp.
◆ SST4diff2
const float SST4diff2 = -1.0 |
Definition at line 127 of file sst_cloud_mask_utils.hpp.
◆ SSTdiff
const float SSTdiff = 3.0 |
Definition at line 124 of file sst_cloud_mask_utils.hpp.
◆ SSTmax
const float SSTmax = 40.0 |
Definition at line 117 of file sst_cloud_mask_utils.hpp.
◆ SSTmaxn
const float SSTmaxn = 37.0 |
Definition at line 118 of file sst_cloud_mask_utils.hpp.
◆ SSTmin
const float SSTmin = -1.8 |
Definition at line 116 of file sst_cloud_mask_utils.hpp.
◆ SSTvdiff
const float SSTvdiff = 5.0 |
Definition at line 125 of file sst_cloud_mask_utils.hpp.
◆ vhisenz
const float vhisenz = 75.0 |
Definition at line 110 of file sst_cloud_mask_utils.hpp.
◆ vhisenzv2
const float vhisenzv2 = 65.0 |
Definition at line 111 of file sst_cloud_mask_utils.hpp.