% Final conversion used
Import Analyze (HDR and IMG) using MRIcron https://www.nitrc.org/projects/mricron
Do final rotation using MRIcroGL https://www.nitrc.org/projects/mricrogl 
    (Change preference to Neurological view - view from the top 
    Load NIFTI, Import > Tools > Rotation to set orientation, Export

% Other tools conversion below from Analyze necessary for one subject
addpath('/data/matlab/NIfTI_20140122/')
info = load_nii ('/Users/arno/GoogleDrive/bids_p3_2subjects/s01raw/mri/s01.hdr');
image = info.img;
info.img=image;
save_nii(info,'/Users/arno/GoogleDrive/bids_p3_2subjects/s01raw/mri/s01_tmp.nii');

% then Matlab native load and save
V = niftiread('/Users/arno/GoogleDrive/bids_p3_2subjects/s01raw/mri/s01_tmp.nii');
niftiwrite(V, '/Users/arno/GoogleDrive/bids_p3_2subjects/s01raw/mri/s01.nii');

V = niftiread('/Users/arno/GoogleDrive/bids_p3_2subjects/s02raw/mri/s02.hdr', '/Users/arno/GoogleDrive/bids_p3_2subjects/s02raw/mri/s02.img');
niftiwrite(V, '/Users/arno/GoogleDrive/bids_p3_2subjects/s02raw/mri/s02.nii');
