Skip to content

Commit

Permalink
Reverting un-trimming of ROMS pixels, as this was necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
knutfrode committed Apr 25, 2024
1 parent c7c926b commit 0afb43b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opendrift/readers/reader_ROMS_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ def get_variables(self, requested_variables, time=None,
# Avoiding the last pixel in each dimension, since there are
# several grids which are shifted (rho, u, v, psi)
indx = np.arange(np.max([0, indx.min()-buffer]),
np.min([indx.max()+buffer, self.lon.shape[1]]))
np.min([indx.max()+buffer, self.lon.shape[1]-1]))
indy = np.arange(np.max([0, indy.min()-buffer]),
np.min([indy.max()+buffer, self.lon.shape[0]]))
np.min([indy.max()+buffer, self.lon.shape[0]-1]))

# define indices
ixy = (indy,indx)
Expand Down

0 comments on commit 0afb43b

Please sign in to comment.