R/read.r
parse_description.Rd
parse description of ScanImage TIFF file, converting it to key-value list
parse_description(x, raw = FALSE)
x | Path to a TIFF file, one or more slices returned by
|
---|---|
raw | Whether to return the raw description field as a single string or
when |
a named list
or, when raw=TRUE
, a character vector of
length 1.
ScanImage TIFF flies contain a single description field, which is a
CR delimited values of the form key=value
.
read.scanimage
desc=parse_description(system.file( 'extdata/Blank-IPA_1s_16r_032.tif',package='scanimage')) desc$state.configName#> [1] "ajdm_piezo"# [1] "ajdm_piezo" desc$state.acq.frameRate#> [1] 8.138021# [1] 8.138021 (Hz)