original_docstring: Calculates the normalized difference vegetation index (NDVI) from near-infrared and red imagery.
  
          Keyword arguments:
  
          nir -- Input near-infrared band image. 
          red -- Input red band image. 
          output -- Output raster file. 
          clip -- Optional amount to clip the distribution tails by, in percent. 
          osavi -- Optional flag indicating whether the optimized soil-adjusted veg index (OSAVI) should be used. 
          callback -- Custom functon for handling tool text outputs.
          
docstring: Calculates the normalized difference vegetation index (NDVI) from near-infrared and red imagery.
  Keyword arguments.
  
  - Input near-infrared band image.
  red -- Input red band image.
  output -- Output raster file.
  clip -- Optional amount to clip the distribution tails by, in percent.
  osavi -- Optional flag indicating whether the optimized soil-adjusted veg index (OSAVI) should be used.
  callback -- Custom functon for handling tool text outputs.
docstring_tokens: Calculates the normalized difference vegetation index ( NDVI ) from near - infrared and red imagery . Keyword arguments . - Input near - infrared band image . red -- Input red band image . output -- Output raster file . clip -- Optional amount to clip the distribution tails by in percent . osavi -- Optional flag indicating whether the optimized soil - adjusted veg index ( OSAVI ) should be used . callback -- Custom functon for handling tool text outputs .
code: def normalized_difference_vegetation_index(self, nir, red, output, clip=0.0, osavi=False, callback=default_callback):
          """Calculates the normalized difference vegetation index (NDVI) from near-infrared and red imagery.
  
          Keyword arguments:
  
          nir -- Input near-infrared band image. 
          red -- Input red band image. 
          output -- Output raster file. 
          clip -- Optional amount to clip the distribution tails by, in percent. 
          osavi -- Optional flag indicating whether the optimized soil-adjusted veg index (OSAVI) should be used. 
          callback -- Custom functon for handling tool text outputs.
          """
          args = []
          args.append("--nir='{}'".format(nir))
          args.append("--red='{}'".format(red))
          args.append("--output='{}'".format(output))
          args.append("--clip={}".format(clip))
          if osavi: args.append("--osavi")
          return self.run_tool('normalized_difference_vegetation_index', args, callback)
code_tokens: def normalized_difference_vegetation_index ( self , nir , red , output , clip = 0.0 , osavi = False , callback = default_callback ) : args = [ ] args . append ( "--nir='{}'" . format ( nir ) ) args . append ( "--red='{}'" . format ( red ) ) args . append ( "--output='{}'" . format ( output ) ) args . append ( "--clip={}" . format ( clip ) ) if osavi : args . append ( "--osavi" ) return self . run_tool ( 'normalized_difference_vegetation_index' , args , callback )
short_docstring: Calculates the normalized difference vegetation index (NDVI) from near-infrared and red imagery.
short_docstring_tokens: Calculates the normalized difference vegetation index ( NDVI ) from near - infrared and red imagery .
comment: """Calculates the normalized difference vegetation index (NDVI) from near-infrared and red imagery.
  
          Keyword arguments:
  
          nir -- Input near-infrared band image. 
          red -- Input red band image. 
          output -- Output raster file. 
          clip -- Optional amount to clip the distribution tails by, in percent. 
          osavi -- Optional flag indicating whether the optimized soil-adjusted veg index (OSAVI) should be used. 
          callback -- Custom functon for handling tool text outputs.
          """