From cda3d468341225a989fc2d3601fb7a85607fc516 Mon Sep 17 00:00:00 2001 From: Vincent Sarago Date: Fri, 25 Oct 2024 21:13:47 +0200 Subject: [PATCH] Update tests/test_io_xarray.py Co-authored-by: Henry Rodman --- tests/test_io_xarray.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_io_xarray.py b/tests/test_io_xarray.py index 4ea34e75..410231b9 100644 --- a/tests/test_io_xarray.py +++ b/tests/test_io_xarray.py @@ -536,6 +536,10 @@ def test_xarray_reader_no_dims(): def test_xarray_reader_Y_axis(): """test XarrayReader with 2D dataset.""" + # Create a DataArray where the y coordinates are in increasing order + # (this is the opposite of typical raster data) + # This array will have a positive y resolution in the affine transform + # and the data values increase with the y coordinates arr = numpy.arange(0, 33 * 35).reshape(1, 33, 35) data = xarray.DataArray( arr,