-
Notifications
You must be signed in to change notification settings - Fork 1
/
composite_definitions.py
101 lines (83 loc) · 2.26 KB
/
composite_definitions.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
import numpy as np
import band_math_definitions as BM
VNIR = {
"Visible": {
"R": lambda b: b[3],
"G": lambda b: b[2],
"B": lambda b: b[1],
},
"Vegetation and visible bands": {
"R": BM.VNIR["NDVI"],
"G": lambda b: b[2],
"B": lambda b: b[1],
}
}
SWIR = {
"AlOH minerals + advanced argillic alteration": {
"R": BM.SWIR["Phengitic"],
"G": BM.SWIR["Muscovite"],
"B": BM.SWIR["Kaolinite"],
},
"Clay, amphibole, laterite": {
"R": BM.SWIR["Clay"],
"G": BM.SWIR["Amphibole"],
"B": BM.SWIR["Laterite"],
},
}
TIR = {
"Silica, carbonate, basic degree index": {
"R": BM.TIR["Silica"],
"G": BM.TIR["Carbonate"],
"B": BM.TIR["SiO2-2"],
},
"Silica": {
"R": BM.TIR["Silica-1"],
"G": BM.TIR["Silica-2"],
"B": BM.TIR["Silica-3"],
},
}
VNIR_SWIR = {
"Gossan, alteration, host rock - 1": {
"R": BM.VNIR_SWIR["Gossan"],
"G": BM.SWIR["Alteration"],
"B": BM.SWIR["Host rock"],
},
"Gossan, alteration, host rock - 2": {
"R": lambda b: b[6],
"G": lambda b: b[2],
"B": lambda b: b[1],
},
"Discrimination - 1": {
"R": lambda b: np.true_divide(b[4], b[7]),
"G": lambda b: np.true_divide(b[4], b[1]),
"B": lambda b: np.true_divide(b[2], b[3]) * np.true_divide(b[4], b[3]),
},
"Discrimination - 2": {
"R": lambda b: np.true_divide(b[4], b[7]),
"G": lambda b: np.true_divide(b[4], b[3]),
"B": lambda b: np.true_divide(b[2], b[1]),
},
"Enhanced structural features": {
"R": lambda b: b[7],
"G": lambda b: b[4],
"B": lambda b: b[2],
},
}
VNIR_SWIR_TIR = {
"Discrimination for mapping": {
"R": lambda b: np.true_divide(b[4], b[1]),
"G": lambda b: np.true_divide(b[3], b[1]),
"B": lambda b: np.true_divide(b[12], b[13]),
},
"Discrimination in sulphide rich areas": {
"R": lambda b: b[12],
"G": lambda b: b[5],
"B": lambda b: b[3],
},
"Silica, Fe2+": {
"R": BM.TIR["Quartz rich rocks"],
"G": BM.VNIR_SWIR["Ferrous iron, Fe2+"],
# TODO should be MNF 1
"B": lambda b: b[1],
},
}