original_docstring:  Calculate the annual mean anomalies where at least 75 % of months are present 
docstring: Calculate the annual mean anomalies where at least 75 % of months are present
docstring_tokens: Calculate the annual mean anomalies where at least 75 % of months are present
code: def AverageAnnuals(GBarr,TheMDI):
      ''' Calculate the annual mean anomalies where at least 75 % of months are present '''
      AnnArr=np.empty(len(GBarr)/12)
      AnnArr.fill(TheMDI)
      GBarr=np.reshape(GBarr,(len(GBarr)/12,12))
      for yy in range(len(AnnArr)):
          subarr=GBarr[yy,:]
  	gots=np.where(subarr != TheMDI)[0]
  	if len(gots) >= 9:
  	    AnnArr[yy]=np.mean(subarr[gots])
  	    
      return AnnArr
code_tokens: def AverageAnnuals ( GBarr , TheMDI ) : AnnArr = np . empty ( len ( GBarr ) / 12 ) AnnArr . fill ( TheMDI ) GBarr = np . reshape ( GBarr , ( len ( GBarr ) / 12 , 12 ) ) for yy in range ( len ( AnnArr ) ) : subarr = GBarr [ yy , : ] gots = np . where ( subarr != TheMDI ) [ 0 ] if len ( gots ) >= 9 : AnnArr [ yy ] = np . mean ( subarr [ gots ] ) return AnnArr
short_docstring: Calculate the annual mean anomalies where at least 75 % of months are present
short_docstring_tokens: Calculate the annual mean anomalies where at least 75 % of months are present
comment: ''' Calculate the annual mean anomalies where at least 75 % of months are present '''