original_docstring: Performs a percentage linear contrast stretch on input images.
  
          Keyword arguments:
  
          i -- Input raster file. 
          output -- Output raster file. 
          clip -- Optional amount to clip the distribution tails by, in percent. 
          tail -- Specified which tails to clip; options include 'upper', 'lower', and 'both' (default is 'both'). 
          num_tones -- Number of tones in the output image. 
          callback -- Custom functon for handling tool text outputs.
          
docstring: Performs a percentage linear contrast stretch on input images.
  Keyword arguments.
  
  - Input raster file.
  output -- Output raster file.
  clip -- Optional amount to clip the distribution tails by, in percent.
docstring_tokens: Performs a percentage linear contrast stretch on input images . Keyword arguments . - Input raster file . output -- Output raster file . clip -- Optional amount to clip the distribution tails by in percent .
code: def percentage_contrast_stretch(self, i, output, clip=0.0, tail="both", num_tones=256, callback=default_callback):
          """Performs a percentage linear contrast stretch on input images.
  
          Keyword arguments:
  
          i -- Input raster file. 
          output -- Output raster file. 
          clip -- Optional amount to clip the distribution tails by, in percent. 
          tail -- Specified which tails to clip; options include 'upper', 'lower', and 'both' (default is 'both'). 
          num_tones -- Number of tones in the output image. 
          callback -- Custom functon for handling tool text outputs.
          """
          args = []
          args.append("--input='{}'".format(i))
          args.append("--output='{}'".format(output))
          args.append("--clip={}".format(clip))
          args.append("--tail={}".format(tail))
          args.append("--num_tones={}".format(num_tones))
          return self.run_tool('percentage_contrast_stretch', args, callback)
code_tokens: def percentage_contrast_stretch ( self , i , output , clip = 0.0 , tail = "both" , num_tones = 256 , callback = default_callback ) : args = [ ] args . append ( "--input='{}'" . format ( i ) ) args . append ( "--output='{}'" . format ( output ) ) args . append ( "--clip={}" . format ( clip ) ) args . append ( "--tail={}" . format ( tail ) ) args . append ( "--num_tones={}" . format ( num_tones ) ) return self . run_tool ( 'percentage_contrast_stretch' , args , callback )
short_docstring: Performs a percentage linear contrast stretch on input images.
short_docstring_tokens: Performs a percentage linear contrast stretch on input images .
comment: """Performs a percentage linear contrast stretch on input images.
  
          Keyword arguments:
  
          i -- Input raster file. 
          output -- Output raster file. 
          clip -- Optional amount to clip the distribution tails by, in percent. 
          tail -- Specified which tails to clip; options include 'upper', 'lower', and 'both' (default is 'both'). 
          num_tones -- Number of tones in the output image. 
          callback -- Custom functon for handling tool text outputs.
          """