question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to read index file with xarray

See original GitHub issue

Unix machine, cfgrib 0.9.10.0 xarray 2022.3.0

Since updating to the latest versions of cfgrib & xarray when I open any grib for the second time [xr.open_dataset(fname,engine='cfgrib') ] I get

Ignoring index file 'sfc_unstructured_2018_12.grib.923a8.idx' incompatible with GRIB file I have ensured that the index file has been made with the same version of cfgrib/xarray. This error cannot be duplicated with, for example, xarray=0.16.2, cfgrib=0.9.9.1.dev0.

As an example, I can duplicate this behaviour with this grib file https://github.com/ecmwf/climetlab/raw/main/docs/examples/test.grib

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mchantrycommented, Mar 17, 2022

@iainrussell thanks very much.

0reactions
iainrussellcommented, Mar 16, 2022

Hi @mchantry oops, didn’t see your last message until now - too late, I just released it! 😃 Version 0.9.10.1. There were quite a few fixes in there, so it’s good to get it done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading and writing files - Xarray
Reading and writing netCDF files with xarray requires scipy or the netCDF4-Python library to be installed (the latter is required to ...
Read more >
Struggling with large dataset loading/reading using xarray
My issue here is that I am dealing with 4D (sliced) files of dimensions:[time,depth ... B) The very slow xarray reading of data...
Read more >
xarray read remote grib file on s3 using cfgrib - Stack Overflow
Think I got it via https://filesystem-spec.readthedocs.io/en/latest/features.html#caching-files-locally import fsspec import xarray as xr ...
Read more >
Indexing and selecting data — xarray 0.8.0 documentation
Depending on whether the underlying numpy indexing returns a copy or a view, the method will fail, and when it fails, it will...
Read more >
Handling NetCDF Files using XArray for Absolute Beginners
netCDF4-python for basic netCDF operation such as reading/writing; dask-array 0.16+ for parallel computing with dask. If you want to visualize ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found