write.trk.header: Write the 1000 byte header of a TRK file.

View source: R/write_dti_tracks.R

write.trk.headerR Documentation

Write the 1000 byte header of a TRK file.

Description

Write the 1000 byte header of a TRK file.

Usage

write.trk.header(con, header, num_tracks, endian)

Arguments

con

a connection opened in binary write mode.

header

named list, the header fields to write. Missing fields get defaults.

num_tracks

integer, the value for the 'n_count' field.

endian

character string, 'little' or 'big'.

Value

NULL, invisibly. The header is written to con.


freesurferformats documentation built on Sept. 25, 2026, 1:07 a.m.