-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for grids with negative lat/lon increments (#369)
Flips grids with negative latitude/longitude increments properly using xarray sortby(). Includes tests that check to make sure that dataarray_to_matrix works for standard case where longitude (x) and latitude (y) dimensions of grids are in positive increments (ascending order). Also ensures that grids are flipped correctly when the x and/or y axis are in negative increments (descending order).
- Loading branch information
Showing
2 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters