home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 570156277

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/3653#issuecomment-570156277 https://api.github.com/repos/pydata/xarray/issues/3653 570156277 MDEyOklzc3VlQ29tbWVudDU3MDE1NjI3Nw== 1197350 2020-01-02T09:34:58Z 2020-01-02T09:34:58Z MEMBER

Xarray does not appear to be able to open netCDF from a url without a THREADS serve

This is not a limitation of xarray per se, but of the netcdf4-python library itself.

You can, however, get around this limitation by using fsspec.

```python import xarray as xr from fsspec.implementations.http import HTTPFileSystem

your Azure URL is not publicly accessible, so I used another one

url = 'https://www.ldeo.columbia.edu/~rpa/NOAA_NCDC_ERSST_v3b_SST.nc' fs = HTTPFileSystem() fobj = fs.open(url) ds = xr.open_dataset(fobj) ds ```

This will not be very performant, but it will work.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  543197350
Powered by Datasette · Queries took 0.757ms · About: xarray-datasette