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
The problem here is that your coordinates differ slightly on each file:
In [14]: abs(advt.TLAT - tarea.TLAT).max()
Out[14]:
<xarray.DataArray 'TLAT' ()>
array(4.547473508864641e-13)
This does come up with some frequency, but unfortunately, it's hard to know a priori whether differences in floating point values are meaningful or just due to loss of numerical precision.
One way to fix this would be to add a tolerance keyword argument of some sort to xarray.Variable.equals(), which we could allow setting via xarray.set_options() for arithmetic. Then you could write something like:
with xarray.set_options(float_tolerance=1e-8):
result = advt * tarea
Recently, I occurred a bug: multiplication discards coords of dsarray.
TLAT and TLONG are gone. Any suggestion?
Here I provide my test data.
The text was updated successfully, but these errors were encountered: