Learn R Programming

FITSio (version 2.1-6)

parseHdr: Parse FITS header

Description

Parse FITS header to extract keyword = variable pairs. Mostly useful for finding values given keyword name.

Usage

parseHdr(headerName)

Arguments

headerName

Header card images (vector)

Value

Vector with elements keyword, variable for all pairs.

Details

Uses strict FITS convention to identify keyword = variable pairs: a string '= ' in card image columns 9 and 10.

See Also

readFITSheader, modifyHeader

Examples

Run this code
# NOT RUN {
header <- newKwv('KEYWORD', 'VALUE', 'NOTE')
header <- addKwv('test1', 'plot size', header=header)
header <- addKwv('test2', 4294.95397809807, 'number', header=header)
header <- addKwv('test3', 4.29495397809807e50, 'big number', header=header)
header <- addKwv('test4', -4.29495397809807e50, 'big number', header=header)
parseHdr(header)
# }

Run the code above in your browser using DataLab