Replies: 1 comment
-
Hi @SebBub, I'm personally not that familiar with GRIB files. If the variables in the resulting xarray dataset conform nicely to the UGRID conventions, it should just work. You can try opening the file in an alternative manner via just xarray, mostly as a sanity check: import xarray as xr
import xugrid as xu
path = Path(r"C:\Users\Sebastian\Massendaten\ICON\icon_global_icosahedral_single-level_2023090700_001_TOT_PREC.grib2")
file = path / "icon_global_icosahedral_single-level_2023090700_001_TOT_PREC.grib2"
ds = xr.open_dataset(file, engine="cfgrib") Then, in a next step: uds = xu.UgridDataset(ds) This is essentially identical to what xugrid does internally. Anyway, what I expect to find is that xarray will open it just fine, and then the UgridDataset constructor will fail. From your message above, it looks like your numba is hanging or something. This maybe requires purging you numba install and reinstalling. But for now, to test, you can disable numba as follows: import os
os.environ["NUMBA_DISABLE_JIT"] = "1" Put this at the top of your script, then import the other packages, then run your code again. This will make a select number of functionalities very slow, but it should tell us whether Numba is the problem. |
Beta Was this translation helpful? Give feedback.
-
Dear all,
I just installed xugrid and was hoping to be able to access DWD ICON direct model output which is available as GRIB. I downloaded a sample file from https://opendata.dwd.de/weather/nwp/icon/grib/00/tot_prec/ and installed xugrib latest version from conda-forge as well as cfgrib latest version.
When trying
My script seems to run perpetually with no error messages shown. From the xugrid API reference I am not sure if GRIB is at all supported and also I am not sure if the ICON Grib files meet UGRID conventions.
When I terminate the process with CTRL+C I get the following output in the console, not sure if this is of any help:
Any help on how to open ICON Grib files in Python would be appreciated.
Many thanks and best
Sebastian
Beta Was this translation helpful? Give feedback.
All reactions