nifti.datadim.from.dimfield function

Compute data dimensions from the 'dim' field of the NIFTI (v1 or v2) header.