def textureIndex(SHCoef):
    """needs doc string"""
    Tindx = 1.0
    for term in SHCoef:
        l = eval(term.strip('C'))[0]
        Tindx += SHCoef[term] ** 2 / (2.0 * l + 1.0)
    return Tindx
