CubeBrowser / cube-explorer

browser based exploration of iris cubes
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Cube transpose bug fix #42

Closed philippjfr closed 8 years ago

philippjfr commented 8 years ago

When I switched to using cube.extract to apply perform the groupby instead of cube.slices that had the side-effect that the resultant cube was not transposed so the values returned by CubeInterface.values are in the wrong order. Since transposing requires the data to be in memory we now apply the transpose operation only when returning the values. This means that the order of coordinates in a HoloCube don't have to match the order of dimensions on the HoloCube.

jlstevens commented 8 years ago

Looks like a relatively straightforward bug fix. I'm happy to merge it now if you think it is ready.

philippjfr commented 8 years ago

Yes, ready to merge.