Closed
Description
Hi,
The example code for importing a forecast from GFS has stopped working for me.
from pvlib.forecast import GFS, NAM, NDFD, HRRR, RAP
import pandas as pd
import datetime
latitude, longitude, tz = 32.2, -110.9, 'US/Arizona'
start = pd.Timestamp(datetime.date.today(), tz=tz)
end = start + pd.Timedelta(days=7)
irrad_vars = ['ghi', 'dni', 'dhi']
model = GFS()
raw_data = model.get_data(latitude, longitude, start, end)
print(raw_data.head())
returns an error now:
lib\xml\etree\ElementTree.py", line 1321, in XML
return parser.close()
File "<string>", line unknown
ParseError: no element found: line 1, column 0
python version is 3.8 and numpy version is 1.21.2.
Has anyone else encountered this problem?
I was able to read in forecasted data without problems previously but I don't know what's changed between then and now.
Thanks,
David
Metadata
Metadata
Assignees
Labels
No labels