Untitled

 avatar
unknown
python
2 years ago
1.1 kB
2
Indexable
import pvlib
from datetime import datetime
import pytz

timezone = pytz.timezone("Europe/Helsinki")

start_date = timezone.localize(datetime(2020, 10, 2))
end_date = timezone.localize(datetime(2020, 11, 2))

poa_data, meta, inputs= pvlib.iotools.get_pvgis_hourly(latitude =61, longitude = 24,
                                                            start = start_date, end = end_date,
                                                            raddatabase = "PVGIS-SARAH2",
                                                            peakpower=1,
                                                            components=True, pvcalculation=True,
                                                            surface_tilt = 45,
                                                            surface_azimuth = 0,
                                                            url = "https://re.jrc.ec.europa.eu/api/v5_2/")


filtered_data = poa_data[start_date:end_date]

filtered_data.to_csv("filtered.csv")
poa_data.to_csv("received.csv")
Editor is loading...
Leave a Comment