parse_description: parse description of ScanImage TIFF file, converting it to...

Description Usage Arguments Details Value See Also Examples

View source: R/read.r

Description

parse description of ScanImage TIFF file, converting it to key-value list

Usage

1

Arguments

x

Path to a TIFF file, one or more slices returned by read.scanimage or a raw data block.

raw

Whether to return the raw description field as a single string or when FALSE (the default) to return it is as a list containing parsed R data types.

Details

ScanImage TIFF flies contain a single description field, which is a CR delimited values of the form key=value.

Value

a named list or, when raw=TRUE, a character vector of length 1.

See Also

read.scanimage

Examples

1
2
3
4
5
6
desc=parse_description(system.file(
  'extdata/Blank-IPA_1s_16r_032.tif',package='scanimage'))
desc$state.configName
# [1] "ajdm_piezo"
desc$state.acq.frameRate
# [1] 8.138021 (Hz)

jefferis/scanimage documentation built on May 19, 2019, 3:58 a.m.