openclimatefix / ocf_datapipes

OCF's DataPipe based dataloader for training and inference
MIT License
13 stars 11 forks source link

Open Eumetsat-rss data error #133

Closed gitbooo closed 1 year ago

gitbooo commented 1 year ago

I am trying to open a file on "Eumetsat-rss" and I am getting the following error message: codec not available: 'imagecodecs_jpegxl_float_with_nans'. I have already installed the required packages, but I am still getting this error. Can you help me resolve this issue?

This is the code:

ZARR_PATH = "/Eumetsat-rss/2020_000000-of-000097.zarr.zip"
ds_from_zarr = xr.open_dataset(ZARR_PATH, mode="r", engine="zarr")
jacobbieker commented 1 year ago

Hi, so you need to add the line from jpeg_xl_float_with_nans import jpeg_xl_float_with_nans

to import that codec, which then should open it