issues: 1214290591
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1214290591 | I_kwDOAMm_X85IYJqf | 6510 | Feature request: raise more informative error message for `xr.open_dataset(list_of_paths)` | 12237157 | open | 0 | 4 | 2022-04-25T10:22:25Z | 2022-04-29T16:47:56Z | CONTRIBUTOR | Is your feature request related to a problem?I sometimes use ```python import xarray as xr xr.version # '2022.3.0' ds = xr.tutorial.load_dataset("air_temperature") ds.isel(time=slice(None,1500)).to_netcdf("file1.nc") ds.isel(time=slice(1500,None)).to_netcdf("file2.nc") xr.open_mfdataset(["file1.nc","file2.nc"]) # works xr.open_mfdataset("file?.nc") # works I understand what I need to do herexr.open_dataset("file?.nc") # fails FileNotFoundError: No such file or directory: b'/dir/file?.nc' I dont here; I also first try to check whether one of these files is corruptxr.open_dataset(["file1.nc","file2.nc"]) # fails ValueError: did not find a match in any of xarray's currently installed IO backends ['netcdf4', 'h5netcdf', 'scipy', 'cfgrib']. Consider explicitly selecting one of the installed engines via the Describe the solution you'd likedirecting the user towards the solution, i.e. "found path as list, please use open_mfdataset" Describe alternatives you've consideredNo response Additional contextNo response |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/6510/reactions",
"total_count": 6,
"+1": 6,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
13221727 | issue |