Debian Codegraph @

tests/test_hdf4.py

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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
9 def test1():
10 here = os.path.dirname(__file__)
11 fn = os.path.join(here, "MOD14.hdf4")
12
13 out = kerchunk.hdf4.HDF4ToZarr(fn).translate()
14 store = refs_as_store(out)
15 g = zarr.open(store, zarr_format=2)
16 assert g["fire mask"][:].max() == 5