nibabel get_data_offset

27 views
Skip to first unread message

basile

unread,
May 19, 2014, 3:12:01 AM5/19/14
to nipy...@googlegroups.com
Hi

since recent changes in nibabel the offset value return by get_data_offset seems to be systematically zero, I do not know what is the exact purpose of this field.
My question is related to this as I was using this to get the position of the data in the file to open it with memmap reshaping the array (for hcp data with C order instead of Fortran): how to get this offset? is nii.header.sizeof_hdr+nii.header.extensions.get_sizeondisk() ok ?

Many thanks.

b

basile

unread,
May 20, 2014, 2:29:31 AM5/20/14
to nipy...@googlegroups.com
It seems that nibabel to read data is getting the right offset from nii._dataobj.header.get_data_offset() for example nii being the NiftiImage.
Reply all
Reply to author
Forward
0 new messages