Skip to content

iris concatenate_cube() issue #5495

Answered by acchamber
wu841227 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Lianghai

You're correct, this is a result of a inconsistency in the data files. Iris merging/concatenate is very picky about the input data files which can be an issue with malformed CMIP5 data. As a general rule, when iris is giving a very non-specific concatenation error like this, the cause is a difference in the coordinates you are trying to concatenate over (latitude & and longitude, in this case). So I had a look at the example data you provided.

cubel = iris.load(files)

cubel[0].coord("longitude")  == cubel[1].coord("longitude") == cubel[2].coord("longitude")
True

cubel[0].coord("latitude")  == cubel[1].coord("latitude") == cubel[2].coord("latitude")
False

So there's somethin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wu841227
Comment options

Answer selected by acchamber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants