You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specific error:
ValueError: cannot reshape array of size 67184640000 into shape (360, 720, 360, 720).
We attempted to regrid a (360, 720) to a different (360, 720) and this was the error I got. We went inside the xESMF core.py and realized the error was on line 1052 where it did the comparison:
if self.size != reduce(operator.mul, shape, 1): raise ValueError( "cannot reshape array of size {} into shape {}".format(self.size, shape) )
But actually the multiplication of (360, 720, 360, 720) is 67184640000 so it should not have failed in this part. We realized that shapes elements were np.int32 and so the 'reduce (mul=' was giving an overflow error.
Result:
We fixed this by changing the shape tuple into np.int64 elements and it worked.
This should be fixed to allow larger operation.
The text was updated successfully, but these errors were encountered:
Specific error:
ValueError: cannot reshape array of size 67184640000 into shape (360, 720, 360, 720).
if self.size != reduce(operator.mul, shape, 1): raise ValueError( "cannot reshape array of size {} into shape {}".format(self.size, shape) )
Result:
The text was updated successfully, but these errors were encountered: