Skip to content

Commit

Permalink
fix corner array shape mismatch in write_scrip - closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
aekiss committed Sep 30, 2020
1 parent 70d1dce commit b314280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ def write_scrip(self, filename, mask=None, write_test_scrip=True, history=''):
corner_lat = f.createVariable('grid_corner_lat', 'f8',
('grid_size', 'grid_corners'))
corner_lat.units = 'degrees'
corner_lat[:] = clat[:].flatten()
corner_lat[:] = clat[:].reshape(-1,4)

corner_lon = f.createVariable('grid_corner_lon', 'f8',
('grid_size', 'grid_corners'))
corner_lon.units = 'degrees'
corner_lon[:] = clon[:].flatten()
corner_lon[:] = clon[:].reshape(-1,4)

f.title = self.description
f.history = history
Expand Down

0 comments on commit b314280

Please sign in to comment.