Skip to content

iris.util.unify_time_units changes time points dtype #3213

@PAGWatson

Description

@PAGWatson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions