Learn R Programming

freesurferformats (version 1.1.0)

analyze.read.magic: Read the 4 magic bytes of an ANALYZE 7.5 or NIFTI v1 header.

Description

Read the 4 magic bytes of an ANALYZE 7.5 or NIFTI v1 header.

Usage

analyze.read.magic(filepath)

Value

character string, the 4 bytes at offset 344 of the file, interpreted as a string. This is the NIFTI v1 magic field, which is empty ('') for ANALYZE 7.5 files (where the same bytes are the smin field), 'ni1'

for a NIFTI v1 pair file and 'n+1' for a single file NIFTI v1 file.

Arguments

filepath

character string, the path to the header file of a pair.