-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi, I'm a new pvlib user and I'm having a problem trying to request more than 30 days of GFS data. Is there any way to get/download data for the entire year?
Sample Code:
import pandas as pd
import matplotlib.pyplot as plt
import datetime
from pvlib.forecast import GFS, NAM, NDFD, HRRR, RAP
latitude, longitude, tz = -40, -40, 'Brazil/East'
start = pd.Timestamp(datetime.datetime(2021, 1,25, 00, 00), tz=tz)
end = pd.Timestamp(datetime.datetime(2021, 11, 25, 00, 00), tz=tz) #start + pd.Timedelta(days=30)
irrad_vars = ['ghi', 'dni', 'dhi']
model = GFS()
raw_data = model.get_data(latitude, longitude, start, end)
print(raw_data)
And the result only contains data from the last 30 days as follows
2021-10-30 21:00:00-03:00 0.000000 0.000000 ... 0.000000 0.000000 2021-10-31 00:00:00-03:00 0.000000 0.000000 ... 7.795835 -5.171963 2021-10-31 03:00:00-03:00 0.000000 0.000000 ... 8.367566 -5.228735 2021-10-31 06:00:00-03:00 0.000000 0.000000 ... 8.600102 -5.188425 2021-10-31 09:00:00-03:00 13.500000 13.500000 ... 8.529766 -6.115500