Problem with the -x command option (swap axes)
There is an issue in the permutation because the new field is tiled, by which I mean that it appears that the expected field is split up into 8x8 little copies of itself. I think this might be caused by an incorrect stepping since 8 is the difference between the Nx and Nz values. I’ve only tested on the 2D case.