Re: [R] FITS File Reader
On Thu, 10 Jul 2003 19:09:16 -0700 (PDT), Nicholas Konidaris [EMAIL PROTECTED] wrote : Dear R users, I have searched the web and CRAN fairly carefully. Does a FITS format file reader for R currently exist that I can download? www.wotsit.org has a 13 year old document describing FITS, which seems to be a fairly open-ended format, so it may not cover what you need. However, it looks reasonably straightforward to read it using the stream functions: look at the help topics ?file, ?readLines, and ?readBin. If you do locate code to read it, or you end up writing some yourself, you should consider contributing it to the foreign package. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] FITS File Reader
Duncan Murdoch wrote: If you do locate code to read it, or you end up writing some yourself, you should consider contributing it to the foreign package. There's a C (and fortran)-level library for reading FITS files here: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html - together with addons for Perl, Python, C++ etc. Coding an R interface would be a nice exercise in R coding. I would have already written this if not for the fact that most of the high-dimensional data that I deal with gets written with some awful unformatted fortran IO rubbish that needs reverse-engineering and byte-swapping. Haven't these people heard of HDF or FITS?? *sigh* Also, I notice that SciLab can read FITS files, by using ImageMagick, which can read FITS files ImageMagick could convert it to something readable by R, I guess This would be the dirty hack solution. Baz __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help