Skip to content

Commit 2b395ee

Browse files
committed
Allow parsing of http files
1 parent df1c56e commit 2b395ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/iotools/surfrad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def read_surfrad(filename, map_variables=True):
123123
.. [2] NOAA SURFRAD Data Archive
124124
`SURFRAD Archive <ftp://aftp.cmdl.noaa.gov/data/radiation/surfrad/>`_
125125
"""
126-
if str(filename).startswith('ftp'):
126+
if str(filename).startswith('ftp') or str(filename).startswith('http'):
127127
req = Request(filename)
128128
response = urlopen(req)
129129
file_buffer = io.StringIO(response.read().decode(errors='ignore'))

0 commit comments

Comments
 (0)