title: Read HDF5 data with numpy axis order with Julia HDF5
body: <p>I have an HDF5 file containing arrays that are saved with Python/numpy. When I read them into Julia using HDF5.jl, the axes are in the reverse of the order in which they appear in Python. To reduce the mental gymnastics involved in moving between the Python and Julia codebases, I reverse the axis order when I read the data into Julia. I have written my own function to do this:</p>
  
  <pre><code>function reversedims(ary::Array)
    permutedims(ary, [ ndims(ary):-1:1 ])
  end
  
  data = HDF5.read(someh5file, somekey) |&gt; reversedims
  </code></pre>
  
  <p>This is not ideal because (1) I always have to import reversedims to use this; (2) I have to remember to do this for each <code>Array</code> I read. I am wondering if it is possible to either:</p>
  
  <ul>
  <li>instruct HDF5.jl to read in the arrays with a numpy-style axis order, either through a keyword argument or some kind of global configuration parameter</li>
  <li>use a builtin single argument function to reverse the axes</li>
  </ul>