original_docstring: Reduces short-scale variation in an input DEM using a modified Sun et al. (2007) algorithm.
  
          Keyword arguments:
  
          dem -- Input raster DEM file. 
          output -- Output raster file. 
          filter -- Size of the filter kernel. 
          norm_diff -- Maximum difference in normal vectors, in degrees. 
          num_iter -- Number of iterations. 
          zfactor -- Optional multiplier for when the vertical and horizontal units are not the same. 
          callback -- Custom functon for handling tool text outputs.
          
docstring: Reduces short-scale variation in an input DEM using a modified Sun et al.
  
  - Input raster DEM file.
  output -- Output raster file.
  filter -- Size of the filter kernel.
  norm_diff -- Maximum difference in normal vectors, in degrees.
  num_iter -- Number of iterations.
  zfactor -- Optional multiplier for when the vertical and horizontal units are not the same.
  callback -- Custom functon for handling tool text outputs.
docstring_tokens: Reduces short - scale variation in an input DEM using a modified Sun et al . - Input raster DEM file . output -- Output raster file . filter -- Size of the filter kernel . norm_diff -- Maximum difference in normal vectors in degrees . num_iter -- Number of iterations . zfactor -- Optional multiplier for when the vertical and horizontal units are not the same . callback -- Custom functon for handling tool text outputs .
code: def feature_preserving_denoise(self, dem, output, filter=11, norm_diff=15.0, num_iter=5, zfactor=1.0, callback=default_callback):
          """Reduces short-scale variation in an input DEM using a modified Sun et al. (2007) algorithm.
  
          Keyword arguments:
  
          dem -- Input raster DEM file. 
          output -- Output raster file. 
          filter -- Size of the filter kernel. 
          norm_diff -- Maximum difference in normal vectors, in degrees. 
          num_iter -- Number of iterations. 
          zfactor -- Optional multiplier for when the vertical and horizontal units are not the same. 
          callback -- Custom functon for handling tool text outputs.
          """
          args = []
          args.append("--dem='{}'".format(dem))
          args.append("--output='{}'".format(output))
          args.append("--filter={}".format(filter))
          args.append("--norm_diff={}".format(norm_diff))
          args.append("--num_iter={}".format(num_iter))
          args.append("--zfactor={}".format(zfactor))
          return self.run_tool('feature_preserving_denoise', args, callback)
code_tokens: def feature_preserving_denoise ( self , dem , output , filter = 11 , norm_diff = 15.0 , num_iter = 5 , zfactor = 1.0 , callback = default_callback ) : args = [ ] args . append ( "--dem='{}'" . format ( dem ) ) args . append ( "--output='{}'" . format ( output ) ) args . append ( "--filter={}" . format ( filter ) ) args . append ( "--norm_diff={}" . format ( norm_diff ) ) args . append ( "--num_iter={}" . format ( num_iter ) ) args . append ( "--zfactor={}" . format ( zfactor ) ) return self . run_tool ( 'feature_preserving_denoise' , args , callback )
short_docstring: Reduces short-scale variation in an input DEM using a modified Sun et al.
short_docstring_tokens: Reduces short - scale variation in an input DEM using a modified Sun et al .
comment: """Reduces short-scale variation in an input DEM using a modified Sun et al. (2007) algorithm.
  
          Keyword arguments:
  
          dem -- Input raster DEM file. 
          output -- Output raster file. 
          filter -- Size of the filter kernel. 
          norm_diff -- Maximum difference in normal vectors, in degrees. 
          num_iter -- Number of iterations. 
          zfactor -- Optional multiplier for when the vertical and horizontal units are not the same. 
          callback -- Custom functon for handling tool text outputs.
          """