Skip to content

Concatenating over 0 degree longitude line #5393

Answered by trexfeathers
SCChan21 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the extra detail @SCChan21. This is expected behaviour - from the concatenate documentation:

In order to extend the dimensions lengths, the concatenate process requires input cubes with dimension coordinates that can be combined together into monotonic sequences. The order of the input cubes does not affect the concatenate process.

The only way to form a monotonic sequence from the input coordinates is with the large gap in the middle. If you need a coordinate that spans the meridian then the only way is to use negative numbers; below is our recommended workflow for this:

import iris
from iris.cube import CubeList

cubes = iris.load(["10W_0W.nc", "0E_10E.nc"])
cubes = CubeList([

Replies: 5 comments 5 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@SCChan21
Comment options

@trexfeathers
Comment options

@SCChan21
Comment options

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