original_docstring: Identifies potential valley bottom grid cells based on local topolography alone.
  
          Keyword arguments:
  
          dem -- Input raster DEM file. 
          output -- Output raster file. 
          variant -- Options include 'lq' (lower quartile), 'JandR' (Johnston and Rosenfeld), and 'PandD' (Peucker and Douglas); default is 'lq'. 
          line_thin -- Optional flag indicating whether post-processing line-thinning should be performed. 
          filter -- Optional argument (only used when variant='lq') providing the filter size, in grid cells, used for lq-filtering (default is 5). 
          callback -- Custom functon for handling tool text outputs.
          
docstring: Identifies potential valley bottom grid cells based on local topolography alone.
  Keyword arguments.
  
  - Input raster DEM file.
  output -- Output raster file.
docstring_tokens: Identifies potential valley bottom grid cells based on local topolography alone . Keyword arguments . - Input raster DEM file . output -- Output raster file .
code: def extract_valleys(self, dem, output, variant="Lower Quartile", line_thin=True, filter=5, callback=default_callback):
          """Identifies potential valley bottom grid cells based on local topolography alone.
  
          Keyword arguments:
  
          dem -- Input raster DEM file. 
          output -- Output raster file. 
          variant -- Options include 'lq' (lower quartile), 'JandR' (Johnston and Rosenfeld), and 'PandD' (Peucker and Douglas); default is 'lq'. 
          line_thin -- Optional flag indicating whether post-processing line-thinning should be performed. 
          filter -- Optional argument (only used when variant='lq') providing the filter size, in grid cells, used for lq-filtering (default is 5). 
          callback -- Custom functon for handling tool text outputs.
          """
          args = []
          args.append("--dem='{}'".format(dem))
          args.append("--output='{}'".format(output))
          args.append("--variant={}".format(variant))
          if line_thin: args.append("--line_thin")
          args.append("--filter={}".format(filter))
          return self.run_tool('extract_valleys', args, callback)
code_tokens: def extract_valleys ( self , dem , output , variant = "Lower Quartile" , line_thin = True , filter = 5 , callback = default_callback ) : args = [ ] args . append ( "--dem='{}'" . format ( dem ) ) args . append ( "--output='{}'" . format ( output ) ) args . append ( "--variant={}" . format ( variant ) ) if line_thin : args . append ( "--line_thin" ) args . append ( "--filter={}" . format ( filter ) ) return self . run_tool ( 'extract_valleys' , args , callback )
short_docstring: Identifies potential valley bottom grid cells based on local topolography alone.
short_docstring_tokens: Identifies potential valley bottom grid cells based on local topolography alone .
comment: """Identifies potential valley bottom grid cells based on local topolography alone.
  
          Keyword arguments:
  
          dem -- Input raster DEM file. 
          output -- Output raster file. 
          variant -- Options include 'lq' (lower quartile), 'JandR' (Johnston and Rosenfeld), and 'PandD' (Peucker and Douglas); default is 'lq'. 
          line_thin -- Optional flag indicating whether post-processing line-thinning should be performed. 
          filter -- Optional argument (only used when variant='lq') providing the filter size, in grid cells, used for lq-filtering (default is 5). 
          callback -- Custom functon for handling tool text outputs.
          """