We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1c56e commit 2b395eeCopy full SHA for 2b395ee
pvlib/iotools/surfrad.py
@@ -123,7 +123,7 @@ def read_surfrad(filename, map_variables=True):
123
.. [2] NOAA SURFRAD Data Archive
124
`SURFRAD Archive <ftp://aftp.cmdl.noaa.gov/data/radiation/surfrad/>`_
125
"""
126
- if str(filename).startswith('ftp'):
+ if str(filename).startswith('ftp') or str(filename).startswith('http'):
127
req = Request(filename)
128
response = urlopen(req)
129
file_buffer = io.StringIO(response.read().decode(errors='ignore'))
0 commit comments