mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	[processing] fix NDVI calculation
This commit is contained in:
		
							parent
							
								
									8d643014cc
								
							
						
					
					
						commit
						cf634aa3aa
					
				@ -122,7 +122,7 @@ WIDGET, BASE = uic.loadUiType(
 | 
			
		||||
 | 
			
		||||
class ExpressionWidget(BASE, WIDGET):
 | 
			
		||||
 | 
			
		||||
    _expressions = {"NDVI": "([NIR] - [Red]) % ([NIR] + [Red])"}
 | 
			
		||||
    _expressions = {"NDVI": "([NIR] - [Red]) / ([NIR] + [Red])"}
 | 
			
		||||
 | 
			
		||||
    def __init__(self, options):
 | 
			
		||||
        super(ExpressionWidget, self).__init__(None)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user