Geographic Information Systems Asked by Katie B. on July 29, 2021
I am attempting to run the SAVI function (found within the Spatial Analyst module) in ArcPy. However, this function is not showing up for me regardless of there being multiple ArcGIS pages with code samples. (https://pro.arcgis.com/en/pro-app/arcpy/spatial-analyst/savi.htm)
Is this function only available for ArcGIS Pro users?
I have a Spatial Analyst license and I am using ArcGIS Desktop. Is this a licensing issue? Why can’t I execute the SAVI function in my code?
SAVI_raster = arcpy.sa.SAVI(Raster,5,4,L_Value)
Error message:
AttributeError: ‘module’ object has no attribute ‘SAVI’
Alternatively, you could just calculate it yourself in the raster calculator.
The modified version of the SAVI (MSAVI) does not require an L factor and is a bit more stable across a range of settings. It is derived using the red and nir bands thus:
(2 * NIR + 1 - sqrt( (2 * NIR + 1)^2 - 8 * (NIR - RED) )) / 2
References
Qi J., Chehbouni A., Huete A.R., Kerr Y.H., (1994). Modified Soil Adjusted Vegetation Index (MSAVI). Remote Sensing of Environment 48:119-126.
Answered by Jeffrey Evans on July 29, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP