@keflavich I wonder if it makes sense to write this as a general axis permutation method.