NrrdTestDataLength: Quick test that gzipped NRRD has correct data length

Description Usage Arguments Details Value See Also

Description

Quick test that gzipped NRRD has correct data length

Usage

1
NrrdTestDataLength(infile, defaultReturnVal = TRUE)

Arguments

infile

Input/output files

defaultReturnVal

The value to return when file cannot be checked

Details

Tests integrity of a nrrd file by checking that the data block is as long as it should be. For a gzip file, it checks that the last 4 bytes encode the length of the uncompressed data. This says nothing about the contents but does ensure that the file has not been truncated which is much the most common problem.

Value

A logical indicating if the check passed

See Also

NrrdTestIntegrity which is more comprehensive but much slower


jefferis/runu documentation built on May 14, 2019, 2:43 p.m.