Skip to content

Loading a cube giving different AuxCoord behaviour? #4820

Closed Answered by pp-mo
A-Gainford asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to avoid that message "failed to merge into a single cube", if you used "iris.load" instead of "iris.load_cube".

I think what is going on is that the individual netcdf files contain multiple timepoints, so that they have a time dimension -- like your example immediately above

unknown / (kg m-2)     (realization: 3; -- : 126; grid_latitude: 752; grid_longitude: 740)

So, the key problem is that to combine several such cubes into a single one, you need to "concatenate" them, but iris loading can only "merge" cubes.
This is because "merge" works to create a new dimension from scalar coordinates, whereas "concatenate" combines cubes on an existing dimension -- see the disti…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@A-Gainford
Comment options

@A-Gainford
Comment options

@trexfeathers
Comment options

Answer selected by A-Gainford
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants