Learn R Programming

astro (version 1.2)

read.fitstab: Read FITS Table

Description

The mid-level function 'read.fitstab' allows FITS binary tables to be read directly into R.

Usage

read.fitstab(file, hdu = 2, strip = c(" ","'"," "), maxlines = 50000)

Arguments

file
file name
hdu
header and data unit to be read
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 table, with column names labelled appropriately.

Details

The mid-level function 'read.fitstab' is a wrapper around 'read.fits', and provides a more simplistic output of that routine. Note that the FITS table is usually stored in the 2nd HDU of a FITS file, hence the default setting of hdu for this function.

See Also

The astronomy package: astro.