original_docstring: Perform a Stack Cross Correlation analysis
      
      Parameters
      ----------
      ctx : :class:`wise.project.AnalysisContext`
      config : :class:`wise.scc.SCCConfiguration`
      debug : int, optional
      nwise : int, optional
      stack : :class:`libwise.plotutils.FigureStack`, optional
      
      Returns
      -------
      :class:`wise.scc.StackCrossCorrelation` : a StackCrossCorrelation containing the results of the analysis
  
  
      .. _tags: task_scc
      
docstring: Perform a Stack Cross Correlation analysis
  Parameters
  
  
  
  Returns
docstring_tokens: Perform a Stack Cross Correlation analysis Parameters Returns
code: def stack_cross_correlation(ctx, config, debug=0, nwise=2, stack=None):
      """Perform a Stack Cross Correlation analysis
      
      Parameters
      ----------
      ctx : :class:`wise.project.AnalysisContext`
      config : :class:`wise.scc.SCCConfiguration`
      debug : int, optional
      nwise : int, optional
      stack : :class:`libwise.plotutils.FigureStack`, optional
      
      Returns
      -------
      :class:`wise.scc.StackCrossCorrelation` : a StackCrossCorrelation containing the results of the analysis
  
  
      .. _tags: task_scc
      """
      scc_result = scc.StackCrossCorrelation(config, debug=debug, stack=stack)
      all_files = nputils.nwise(ctx.files, nwise)
  
      for pair in all_files:
          img1 = ctx.open_file(pair[0])
          img2 = ctx.open_file(pair[-1])
  
          prj = ctx.get_projection(img1)
  
          delta_t, velocity_pix, tol_pix = scc_result.get_velocity_resolution(prj, img1, img2)
  
          if not nputils.in_range(tol_pix, config.get("tol_pix_range")):
              print "-> Skip: Not in the allowed range of pixel velocity resolution:", tol_pix
              continue
  
          res1 = ctx.detection(img1, filter=config.get("filter1"))
          print "-> Numbers of detected SSP: %s" % ", ".join([str(k.size()) for k in res1])
          res2 = ctx.detection(img2, filter=config.get("filter2"))
  
          scc_result.process(prj, res1, res2)
  
      return scc_result
code_tokens: def stack_cross_correlation ( ctx , config , debug = 0 , nwise = 2 , stack = None ) : scc_result = scc . StackCrossCorrelation ( config , debug = debug , stack = stack ) all_files = nputils . nwise ( ctx . files , nwise ) for pair in all_files : img1 = ctx . open_file ( pair [ 0 ] ) img2 = ctx . open_file ( pair [ - 1 ] ) prj = ctx . get_projection ( img1 ) delta_t , velocity_pix , tol_pix = scc_result . get_velocity_resolution ( prj , img1 , img2 ) if not nputils . in_range ( tol_pix , config . get ( "tol_pix_range" ) ) : print "-> Skip: Not in the allowed range of pixel velocity resolution:" , tol_pix continue res1 = ctx . detection ( img1 , filter = config . get ( "filter1" ) ) print "-> Numbers of detected SSP: %s" % ", " . join ( [ str ( k . size ( ) ) for k in res1 ] ) res2 = ctx . detection ( img2 , filter = config . get ( "filter2" ) ) scc_result . process ( prj , res1 , res2 ) return scc_result
short_docstring: Perform a Stack Cross Correlation analysis
  Parameters
short_docstring_tokens: Perform a Stack Cross Correlation analysis Parameters
comment: """Perform a Stack Cross Correlation analysis
      
      Parameters
      ----------
      ctx : :class:`wise.project.AnalysisContext`
      config : :class:`wise.scc.SCCConfiguration`
      debug : int, optional
      nwise : int, optional
      stack : :class:`libwise.plotutils.FigureStack`, optional
      
      Returns
      -------
      :class:`wise.scc.StackCrossCorrelation` : a StackCrossCorrelation containing the results of the analysis
  
  
      .. _tags: task_scc
      """