def sub2indSH (m,n):
    
	"""
	i = sub2indSH(m,n)
	
	Convert Spherical Harmonic (m,n) indices to array index i
	Assumes that i iterates from 0 (Python style)
    """
    
	i = n**2 + n + m
    
	return i