Ejemplo n.º 1
0
def test_fail_with_math():
    pysolar.use_math()
    lat = np.array([45., 40.])
    lon = np.array([3., 4.])
    time = datetime(2018, 5, 8, 12, 0, 0, tzinfo=pytz.UTC)

    solar.get_altitude(lat, lon, time)
Ejemplo n.º 2
0
def test_fail_with_math():
    pysolar.use_math()
    lat = np.array([45., 40.])
    lon = np.array([3., 4.])
    time = datetime(2018, 5, 8, 12, 0, 0, tzinfo=pytz.UTC)

    solar.get_altitude(lat, lon, time)
Ejemplo n.º 3
0
def test_scalar_with_math():
    pysolar.use_math()

    lat = 45.
    lon = 3.
    time = datetime(2018, 5, 8, 12, 0, 0, tzinfo=pytz.UTC)

    print(solar.get_altitude(lat, lon, time))
    print(solar.get_azimuth(lat, lon, time))
Ejemplo n.º 4
0
def test_scalar_with_math():
    pysolar.use_math()

    lat = 45.
    lon = 3.
    time = datetime(2018, 5, 8, 12, 0, 0, tzinfo=pytz.UTC)

    print(solar.get_altitude(lat, lon, time))
    print(solar.get_azimuth(lat, lon, time))