read.fitshdr: Read FITS Header
Description
The mid-level function 'read.fitshdr' allows FITS headers to be read directly into R.Usage
read.fitshdr(file, hdu = 1, comments = TRUE, strip = c(" ","'"," "), maxlines = 50000)
Arguments
hdu
header and data unit to be read
comments
output header comments?
strip
lead/trail characters stripped from header 'value' data
maxlines
maximum number of header lines
Value
A matrix of data corresponding to the original FITS image header, with two columns ('key' and 'value') and an optional third column ('comment'), should comments = TRUE (default).
Details
The mid-level function 'read.fitshdr' is a wrapper around 'read.fits', and provides a more simplistic output of that routine.
See Also
The astronomy package: astro
.