Learn R Programming

astro (version 1.2)

write.fitshdr: Write FITS Headers

Description

The mid-level function 'write.fitshdr' allows FITS headers to be written directly from R.

Usage

write.fitshdr(hdr, file, hdu = 1)

Arguments

hdr
input header (see details)
file
file name
hdu
header and data unit to be written to

Details

Input headers ('hdr') must contain at least two columns, one named 'key' and one named 'value' (a 'comment' column is optional). For an example of the format expected, see 'read.fitshdr' and 'read.fits'.

The mid-level function 'write.fitshdr' is a wrapper around 'read.fits' and 'write.fits', and provides a shortcut to updating the header of an already existent FITS file.

See Also

The astronomy package: astro.