home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 317114207 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 3

  • DarrenRay 2
  • shoyer 1
  • jhamman 1

author_association 2

  • MEMBER 2
  • NONE 2

issue 1

  • No file error message using open_mfdataset · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
384132951 https://github.com/pydata/xarray/issues/2077#issuecomment-384132951 https://api.github.com/repos/pydata/xarray/issues/2077 MDEyOklzc3VlQ29tbWVudDM4NDEzMjk1MQ== shoyer 1217238 2018-04-25T01:34:00Z 2018-04-25T01:35:39Z MEMBER

Indeed, glob does not work for URLs. The work around is to explicitly supply a list of strings for the paths arguments.

However, we could (and should) improve this error message, to clarify what's going on here. Actually, we should probably raise an error message is paths is a string starting with http:// or https:// before trying glob.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  No file error message using open_mfdataset 317114207
383975935 https://github.com/pydata/xarray/issues/2077#issuecomment-383975935 https://api.github.com/repos/pydata/xarray/issues/2077 MDEyOklzc3VlQ29tbWVudDM4Mzk3NTkzNQ== jhamman 2443309 2018-04-24T15:30:24Z 2018-04-24T15:30:24Z MEMBER

Thanks for the report. Looking at open_mfdataset:

https://github.com/pydata/xarray/blob/99b457ce5859bd949cfea4671db5150c7297843a/xarray/backends/api.py#L558-L564

you'll see we are using glob to expand the path names. This is not likely to work for URLs. I'm not 100% sure if it is even possible to do a path expansion on OpenDAP datasets.

If you can do the expansion yourself, that would be the easiest workaround.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  No file error message using open_mfdataset 317114207
383844717 https://github.com/pydata/xarray/issues/2077#issuecomment-383844717 https://api.github.com/repos/pydata/xarray/issues/2077 MDEyOklzc3VlQ29tbWVudDM4Mzg0NDcxNw== DarrenRay 11804645 2018-04-24T08:15:55Z 2018-04-24T08:15:55Z NONE

sorry: yr is a string ie "2018" ie url="http://opendap.bom.gov.au:8080/thredds/dodsC/agcd/tmax/anomaly/r005/01day/2018/*.nc"

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  No file error message using open_mfdataset 317114207
383844051 https://github.com/pydata/xarray/issues/2077#issuecomment-383844051 https://api.github.com/repos/pydata/xarray/issues/2077 MDEyOklzc3VlQ29tbWVudDM4Mzg0NDA1MQ== DarrenRay 11804645 2018-04-24T08:14:04Z 2018-04-24T08:14:04Z NONE

I am linking to an opendapp server which works fine using xarray.open_dataset(url) on individual files, but I get an error message saying: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python\Anaconda2\lib\site-packages\xarray\backends\api.py", line 561, in open_mfdataset raise IOError('no files to open') IOError: no files to open

when using xarray.open_mfdataset(url)

url="http://opendap.bom.gov.au:8080/thredds/dodsC/agcd/tmax/anomaly/r005/01day/"+yr+"/*.nc"

I am using Anaconda. I have updated everything: xr.show_versions() INSTALLED VERSIONS


commit: None python: 2.7.12.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: en_AU LOCALE: None.None

xarray: 0.10.3 pandas: 0.20.3 numpy: 1.14.2 scipy: 0.17.1 netCDF4: 1.2.2 h5netcdf: None h5py: 2.6.0 Nio: None zarr: None bottleneck: None cyordereddict: None dask: 0.17.2 distributed: 1.21.6 matplotlib: 1.5.1 cartopy: 0.15.0 seaborn: 0.7.1 setuptools: 23.0.0 pip: 9.0.1 conda: 4.4.10 pytest: 2.9.2 IPython: 4.2.0 sphinx: 1.4.1

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  No file error message using open_mfdataset 317114207

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 13.934ms · About: xarray-datasette