-
Notifications
You must be signed in to change notification settings - Fork 0
/
thresholds.py
115 lines (62 loc) · 1.76 KB
/
thresholds.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
def compute_gross_cloud_threshold():
return 5
def compute_gross_snow_threshold():
# this threshold is a little random here...
return 5
def compute_cli_snow_threshold():
return 15
def compute_cli_cloud_threshold():
return 10
def compute_cloud_stability_threshold():
return 4
def compute_cloud_epsilon_threshold():
return 0.3
def compute_thresh_temperature():
return 240
def compute_vis_snow_threshold():
return 0.25
def compute_broad_vis_snow_threshold():
return 0.2
def compute_broad_ndsi_snow_threshold():
return 0.25
def compute_epsilon_maximal_lir_threshold():
return 303.15
def compute_epsilon_threshold():
return 0.2
def compute_mir_sun_glint_threshold():
# Le Gleau 2016 - to make sure 3.8 is not saturated
return 320
def compute_vis_sun_glint_threshold():
# Le Gleau 2016
return 0.6
def compute_lir_texture_land_threshold():
return 2
def compute_opaque_cloud_threshold():
return 0.05
def compute_lir_texture_land_variability_threshold():
return 1.5
def compute_vis_sea_coasts_cloud_factors(zen):
# Inspired from Hocking (2011)
from numpy import cos, power
cos_zen = cos(zen)
cos_zen[cos_zen < 0.03] = 0.03
cos_zen = power(cos_zen, 0.3)
return 1 / cos_zen
def compute_vis_coasts_cloud_all_coefficient():
return 0.3
def compute_vis_sea_cloud_all_coefficient():
return 0.15
def compute_snow_ndsi_threshold():
return 0.3
def compute_broad_cirrus_threshold():
return 0.3
def compute_thin_cirrus_threshold():
return 10
def compute_evolution_lir_fir_threshold():
return 10
def compute_land_evolution_lir():
return 5
def compute_sea_evolution_lir():
return 3
def compute_land_visible_threshold():
return 0.1