Learn R Programming

astro (version 1.2)

read.fitskey: Read FITS Header Keyword

Description

The mid-level function 'read.fitskey' allows FITS header keywords to be read directly into R.

Usage

read.fitskey(key, file, hdu = 1, comments = FALSE, strip = c(" ","'"," "), maxlines = 50000)

Arguments

key
header keyword (may be a vector)
file
file name
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 vector of data equal in length to the input key request. NA is returned where no keys have been found.

Details

The mid-level function 'read.fitskey' is a wrapper around 'read.fits', and provides a more simplistic output of that routine.

See Also

The astronomy package: astro.