Closed chudlerk closed 6 months ago
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!
What happened?
Normally, if there is a NetCDF file hosted online somewhere, I can just put the url into the
open_dataset
function, and it works great. i.e.da = xr.open_dataset('https://www.someurl.com/data/file.nc')
However, If I try to download a file from this website, I get an error.
For example, scrolling down to "1991–2020 Monthly Normals", right clicking on "Precipitation", and copying the link address...
da = xr.open_dataset('https://www.nodc.noaa.gov/archive/arc0196/0245564/1.1/data/0-data/prcp-1991_2020-monthly-normals-v1.0.nc')
Leads to this long error (see below)
If I just download the file to disk by clicking on the link on the page, and then do
xr.open_dataset
on the path of the downloaded file, it works just fine.What did you expect to happen?
NetCDF file to be read in as a Dataset when passing the URL to
xr.open_dataset
, as works with other URLsMinimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
No response
Environment