Skip to content

Commit

Permalink
Update tests/test_io_xarray.py
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Rodman <[email protected]>
  • Loading branch information
vincentsarago and hrodmn authored Oct 25, 2024
1 parent cda3d46 commit 246ed04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_io_xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ def test_xarray_reader_Y_axis():
img = dst.tile(1, 1, 2)
assert img.array[0, 0, 0] > img.array[0, -1, -1]

# Create a DataArray where the y coordinates are in decreasing order
# (this is typical for raster data)
# This array will have a negative y resolution in the affine transform
# and the data values decrease with the y coordinates
arr = numpy.arange(0, 33 * 35).reshape(1, 33, 35)
data = xarray.DataArray(
arr,
Expand Down

0 comments on commit 246ed04

Please sign in to comment.