@@ -375,6 +375,7 @@ def list_tools(self, keywords=[]):
375375
376376
377377
378+
378379
379380
380381 ##############
@@ -3463,20 +3464,22 @@ def fill_burn(self, dem, streams, output, callback=None):
34633464 args .append ("--output='{}'" .format (output ))
34643465 return self .run_tool ('fill_burn' , args , callback ) # returns 1 if error
34653466
3466- def fill_depressions (self , dem , output , fix_flats = True , callback = None ):
3467+ def fill_depressions (self , dem , output , fix_flats = True , flat_increment = None , callback = None ):
34673468 """Fills all of the depressions in a DEM. Depression breaching should be preferred in most cases.
34683469
34693470 Keyword arguments:
34703471
34713472 dem -- Input raster DEM file.
34723473 output -- Output raster file.
34733474 fix_flats -- Optional flag indicating whether flat areas should have a small gradient applied.
3475+ flat_increment -- Optional elevation increment applied to flat areas.
34743476 callback -- Custom function for handling tool text outputs.
34753477 """
34763478 args = []
34773479 args .append ("--dem='{}'" .format (dem ))
34783480 args .append ("--output='{}'" .format (output ))
34793481 if fix_flats : args .append ("--fix_flats" )
3482+ if flat_increment is not None : args .append ("--flat_increment='{}'" .format (flat_increment ))
34803483 return self .run_tool ('fill_depressions' , args , callback ) # returns 1 if error
34813484
34823485 def fill_single_cell_pits (self , dem , output , callback = None ):
0 commit comments