diff --git a/nibabel/freesurfer/mghformat.py b/nibabel/freesurfer/mghformat.py index b3dd1f9bc5..1e49a67207 100644 --- a/nibabel/freesurfer/mghformat.py +++ b/nibabel/freesurfer/mghformat.py @@ -282,6 +282,15 @@ def set_zooms(self, zooms): if len(zooms) == 4: hdr['tr'] = zooms[3] + def get_norm_zooms(self, raise_unknown=False): + ''' Get zooms in mm/s units ''' + zooms = self.get_zooms() + + if len(zooms) == 4: + zooms = zooms[:3] + (zooms[3] / 1000) + + return zooms + def get_data_shape(self): ''' Get shape of data '''