-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iris.util.unify_time_units changes time points dtype #3213
Comments
Hi @PAGWatson - apologies for the delay in anyone responding to this issue. The I'm also not sure that That said, I assume that this issue relates to your comment in #2591, with which I quite agree - concatenate should be able to deal with differing dtypes as merge does. Getting that working would probably be a better solution than trying to retrofit something to |
Hi @PAGWatson, do you know if this still happens for your use-case? A similar problem reported at #1036 seems to have been fixed some time before Iris 2.4 was released. |
Thanks for following up. I'm afraid I can't remember what action gave me this error before, so I can't try to reproduce it right now. |
I’m going to close this one, since there is reason to believe it may have been fixed and we don’t currently have a way to reproduce the problem. Obviously if anyone stumbles on the problem again, they can open a new issue, or we can re-open this one. |
Hello, I just spent quite a long time figuring out why two cubes would not concatenate. It turned out to be because I had used iris.util.unify_time_units on them, and this had turned the time coordinate points dtype for one cube from int64 to float64. This was very hard to track down because the dtype is not displayed when the coordinate is printed. I suggest that iris.util.unify_time_units also makes sure the coordinate dtypes are compatible.
The text was updated successfully, but these errors were encountered: