Skip to content

Commit

Permalink
Fix bug in corner lat/lon for LatLon2DGridDescriptor
Browse files Browse the repository at this point in the history
The lat and lon were swapped!!!
  • Loading branch information
xylar committed Aug 21, 2023
1 parent c446938 commit da3cfe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyremap/descriptor/lat_lon_2d_grid_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ def to_scrip(self, scripFileName):
outFile.variables['grid_imask'][:] = 1

outFile.variables['grid_corner_lat'][:] = \
unwrap_corners(self.lonCorner)
outFile.variables['grid_corner_lon'][:] = \
unwrap_corners(self.latCorner)
outFile.variables['grid_corner_lon'][:] = \
unwrap_corners(self.lonCorner)

setattr(outFile, 'history', self.history)

Expand Down

0 comments on commit da3cfe8

Please sign in to comment.