get.dti.trk.endianness: Determine endianness of TRK file.

View source: R/read_dti_trk.R

get.dti.trk.endiannessR Documentation

Determine endianness of TRK file.

Description

Determine endianness of TRK file.

Usage

get.dti.trk.endianness(filepath)

Arguments

filepath

character string, path to file in trk format.

Value

endina character string. one of 'little' or 'big'.

Note

This function checks endiannes via the header size field of the file header, which must be 1000 for TRK files when read with correct enianness. It will stop if the file is not in TRK format, i.e., if the field is not 1000 in any endianness.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.