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 e59414a commit cda3d46
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 @@ -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,
Expand Down

0 comments on commit cda3d46

Please sign in to comment.