R-FITS: A FITS reader for R

Peter Freeman

InCA, Dept. of Statistics, Carnegie Mellon University

hea-www.harvard.edu/AstroStat/rfits

| Code | References | Usage |

Last Updated: 2007dec13


R-FITS is an R library designed to enable reading in FITS format files into the R environment. It is built upon cfitsio.

The code

The latest version is 0.2.2 (2007-dec-13)

The code consists of C programs. You must already have R and cfitsio installed. See the AstroStat Slog for background on how this package came to be and its limitations. This code has been compiled and used on 32-bit linux machines. To install, first download the tar file that contains all the necessary files to a suitable directory (e.g., /path/to/rfits/installation/directory/) and then type

	cd /path/to/rfits/installation/directory/
	gunzip -c rfits.tar.gz | tar xvf -
	cd rfits_0.2.2/
Then, follow the instructions given in the INSTALL file.

References

history
C-C++-R (in Statistics)

Usage and Syntax

See rfits.API, included in the package.
R function calls:
rfits_read_image(file,hdu=1)
rfits_read_col(file,col=1,width=1,hdu=2)
rfits_read_key(file,key,hdu=2)
rfits_get_col_names(file,hdu=1)
rfits_get_num_hdus(file)
rfits_get_hdu_type(file,hdu=1)


| Code | References | Usage |


[InCA] - [CHASC]