Skip to content

Commit 5a0c639

Browse files
committed
Flip grid array left right in xarray instead of in numpy
1 parent fe0fbc5 commit 5a0c639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def dataarray_to_matrix(grid):
113113
inc = [abs(i) for i in inc]
114114
grid = grid.sortby(variables=list(grid.dims), ascending=True)
115115

116-
matrix = as_c_contiguous(grid.values[::-1])
116+
matrix = as_c_contiguous(grid[::-1].values)
117117
return matrix, region, inc
118118

119119

0 commit comments

Comments
 (0)