modified nii_reorient to use ijk instead of xyz