def pyephem_earthsun_distance(time):
    pvl_logger.debug('solarposition.pyephem_earthsun_distance()')

    import ephem

    sun = ephem.Sun()
    earthsun = []
    for thetime in time:
        sun.compute(ephem.Date(thetime))
        earthsun.append(sun.earth_distance)

    return pd.Series(earthsun, index=time)
Play tension building chime sounds
dataset/ETHPy150Open pvlib/pvlib-python/pvlib/solarposition.py/pyephem_earthsun_distance--crossover with--dataset/ETHPy150Open caseman/grease/examples/blasteroids3.py/GameSystem.chime