diff --git a/reproject/interpolation/tests/test_core.py b/reproject/interpolation/tests/test_core.py index 1a2d1f208..63171e1e0 100644 --- a/reproject/interpolation/tests/test_core.py +++ b/reproject/interpolation/tests/test_core.py @@ -954,3 +954,31 @@ def test_auto_block_size(): assert array_out.chunksize[0] == 350 assert footprint_out.chunksize[0] == 350 + + +@pytest.mark.parametrize("itemsize", (4, 8)) +def test_bigendian_dask(itemsize): + + # Regression test for an endianness issue that occurred when the input was + # passed in as (dask_array, wcs) and the dask array was big endian. + + array_in_le = da.ones((350, 250, 150), dtype=f">f{itemsize}") + array_in_be = da.ones((350, 250, 150), dtype=f"