code: def create_smooth_contour(
          shakemap_layer,
          output_file_path='',
          active_band=1,
          smoothing_method=NUMPY_SMOOTHING,
          smoothing_sigma=0.9):
      
      timestamp = datetime.now()
      temp_smoothed_shakemap_path = unique_filename(
          prefix='temp-shake-map' + timestamp.strftime('%Y%m%d-%H%M%S'),
          suffix='.tif',
          dir=temp_dir('temp'))
  
      temp_smoothed_shakemap_path = smooth_shakemap(
          shakemap_layer.source(),
          output_file_path=temp_smoothed_shakemap_path,
          active_band=active_band,
          smoothing_method=smoothing_method,
          smoothing_sigma=smoothing_sigma
      )
  
      return shakemap_contour(
          temp_smoothed_shakemap_path,
          output_file_path=output_file_path,
          active_band=active_band
      )
docs: Create contour from a shake map layer by using smoothing method.
  
      :param shakemap_layer: The shake map raster layer.
      :type shakemap_layer: QgsRasterLayer
  
      :param active_band: The band which the data located, default to 1.
      :type active_band: int
  
      :param smoothing_method: The smoothing method that wanted to be used.
      :type smoothing_method: NONE_SMOOTHING, NUMPY_SMOOTHING, SCIPY_SMOOTHING
  
      :param smooth_sigma: parameter for gaussian filter used in smoothing
          function.
      :type smooth_sigma: float
  
      :returns: The contour of the shake map layer path.
      :rtype: basestring