1 Debian patch touch this file
| 1 | import os.path |
| 2 | |
| 3 | import zarr |
| 4 | |
| 5 | import kerchunk.hdf4 |
| 6 | from kerchunk.utils import refs_as_store |
| 7 | |
| •8 | import pytest |
| 9 | |
| •10 | |
| 11 | @pytest.mark.xfail(zarr.__version__ >= '3.3', reason="incompatibility with zarr >= v3.3") |
| 12 | def test1(): |
| 13 | here = os.path.dirname(__file__) |
| 14 | fn = os.path.join(here, "MOD14.hdf4") |
| 15 | |
| 16 | out = kerchunk.hdf4.HDF4ToZarr(fn).translate() |
| 17 | store = refs_as_store(out) |
| 18 | g = zarr.open(store, zarr_format=2) |
| 19 | assert g["fire mask"][:].max() == 5 |