original_docstring:  Get simple correlation over months present 
docstring: Get simple correlation over months present
docstring_tokens: Get simple correlation over months present
code: def GetCorr(ALLarr,TypeTime,TheMDI,TheSCount):
      ''' Get simple correlation over months present '''
      CorrCount=sum(range(TheSCount)) # number of unique correlating pairs
      CorrStats=np.empty((CorrCount))
      point1=0	# source number
      point2=1 	# source number
      for cloo in range(CorrCount):
          print('Source points: ',point1,point2)
  	tmp1=ALLarr[point1,:]
  	tmp2=ALLarr[point2,:]
  	gots=np.where((tmp1 > TheMDI) & (tmp2 > TheMDI))[0]
  	if (len(gots) > 60):
              CorrStats[cloo]=np.corrcoef(tmp1[gots],tmp2[gots])[0,1]
          else:
  	    CorrStats[cloo]=0.0
  	point2=point2+1
  	if (point2 == TheSCount):	# loop through
  	    point1=point1+1
  	    point2=1+point1
  	
      return CorrStats
code_tokens: def GetCorr ( ALLarr , TypeTime , TheMDI , TheSCount ) : CorrCount = sum ( range ( TheSCount ) ) CorrStats = np . empty ( ( CorrCount ) ) point1 = 0 point2 = 1 for cloo in range ( CorrCount ) : print ( 'Source points: ' , point1 , point2 ) tmp1 = ALLarr [ point1 , : ] tmp2 = ALLarr [ point2 , : ] gots = np . where ( ( tmp1 > TheMDI ) & ( tmp2 > TheMDI ) ) [ 0 ] if ( len ( gots ) > 60 ) : CorrStats [ cloo ] = np . corrcoef ( tmp1 [ gots ] , tmp2 [ gots ] ) [ 0 , 1 ] else : CorrStats [ cloo ] = 0.0 point2 = point2 + 1 if ( point2 == TheSCount ) : point1 = point1 + 1 point2 = 1 + point1 return CorrStats
short_docstring: Get simple correlation over months present
short_docstring_tokens: Get simple correlation over months present
comment: ''' Get simple correlation over months present '''$SEP$# number of unique correlating pairs$SEP$# source number$SEP$# source number$SEP$# loop through