15
15
If you would like to report an issue with this script, you can file one
16
16
on Github (https://github.com/GeoscienceAustralia/dea-notebooks/issues/new).
17
17
18
- Last modified: March 2021
18
+ Last modified: June 2023
19
19
'''
20
20
21
21
# Import required packages
@@ -39,7 +39,7 @@ def calculate_indices(ds,
39
39
in memory. This can be a memory-expensive operation, so to avoid
40
40
this, set `inplace=True`.
41
41
42
- Last modified: April 2023
42
+ Last modified: June 2023
43
43
44
44
Parameters
45
45
----------
@@ -76,6 +76,7 @@ def calculate_indices(ds,
76
76
* ``'NDSI'`` (Normalised Difference Snow Index, Hall 1995)
77
77
* ``'NDTI'`` (Normalise Difference Tillage Index,
78
78
Van Deventeret et al. 1997)
79
+ * ``'NDTI2'`` (Normalised Difference Turbidity Index, Lacaux et al., 2007)
79
80
* ``'NDVI'`` (Normalised Difference Vegetation Index, Rouse 1973)
80
81
* ``'NDWI'`` (Normalised Difference Water Index, McFeeters 1996)
81
82
* ``'SAVI'`` (Soil Adjusted Vegetation Index, Huete 1988)
@@ -85,7 +86,6 @@ def calculate_indices(ds,
85
86
* ``'TCB_GSO'`` (Tasseled Cap Brightness, Nedkov 2017)
86
87
* ``'TCG_GSO'`` (Tasseled Cap Greeness, Nedkov 2017)
87
88
* ``'TCW_GSO'`` (Tasseled Cap Wetness, Nedkov 2017)
88
- * ``'TI'`` (Normalised Difference Turbidity Index, Lacaux et al 2007)
89
89
* ``'WI'`` (Water Index, Fisher 2016)
90
90
* ``'kNDVI'`` (Non-linear Normalised Difference Vegation Index,
91
91
Camps-Valls et al. 2021)
@@ -201,6 +201,11 @@ def calculate_indices(ds,
201
201
# Van Deventer et al. 1997
202
202
'NDTI' : lambda ds : (ds .swir1 - ds .swir2 ) /
203
203
(ds .swir1 + ds .swir2 ),
204
+
205
+ # Normalised Difference Turbidity Index,
206
+ # Lacaux et al., 2007
207
+ 'NDTI2' : lambda ds : (ds .red - ds .green ) /
208
+ (ds .red + ds .green ),
204
209
205
210
# Normalised Difference Water Index, McFeeters 1996
206
211
'NDWI' : lambda ds : (ds .green - ds .nir ) /
@@ -287,11 +292,7 @@ def calculate_indices(ds,
287
292
288
293
# Iron Oxide Ratio, Segal 1982
289
294
'IOR' : lambda ds : (ds .red / ds .blue ),
290
-
291
- # Normalised Difference Turbidity Index , Lacaux et al 2007
292
- #NB. 'NDTI' key already used. 'TI' used in lieu.
293
- 'TI' : lambda ds : (ds .red - ds .green ) /
294
- (ds .red + ds .green )
295
+
295
296
}
296
297
297
298
# If index supplied is not a list, convert to list. This allows us to
0 commit comments