Hi, I've been playing with R for only a few days, so I'm not terribly familiar with it yet. Has anyone ever done any work using HDF or NetCDF files with R? Both file formats have libraries which can be linked to a program to read and write data to these formats. Is this sort of thing possible with R? We are planning to use the HDF format to store experimental data collected by some research instruments we are designing. I would like to be able to use R for the data analysis? Is this feasible? Both file formats have structures which make their use with R an attractive prospect. http://hdf.ncsa.uiuc.edu http://www.unidata.ucar.edu/packages/netcdf/ -- Fred Bacon =========================================================================Aerodyne Research, Inc. Phone: (978) 663-9500 ext. 273 45 Manning Rd. FAX: (978) 663-4918 Billerica, MA 01821-3976 http://www.aerodyne.com ========================================================================= Me spill chucker woks grate. I needle gramma chicken. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 20 Nov 1998 bacon at aerodyne.com wrote:> Hi, > > I've been playing with R for only a few days, so I'm not terribly > familiar with it yet. Has anyone ever done any work using HDF or > NetCDF files with R?Yes. Steve Oncley <oncley at ucar.edu> wrote back in May You may be interested that almost all of the data we read into S+ is NetCDF. This has involved writing a bit of C code to link to the Unidata C library, which we load into S and are then called with .C(). I have enclosed the comments from our core S+ routine below. Calls to this routine handle opening multiple files and assigning S+ attributes such as time and units-of-measure (read from the NetCDF attributes). All of our code is available upon request (simply because I'm not sure that it is in shape yet for public distribution). I plan to convert all of it to R as part of configuring a new laptop next month :) More recently we have received some HDF support code (I've lost the message, but I would expect it has been archived). It wasn't included in R0.63 because it used a lot of gcc-specific features that would break in standard C compilers. Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
bacon at aerodyne.com writes:> Hi, > > I've been playing with R for only a few days, so I'm not terribly > familiar with it yet. Has anyone ever done any work using HDF or > NetCDF files with R? Both file formats have libraries which can be > linked to a program to read and write data to these formats. Is this > sort of thing possible with R? We are planning to use the HDF format to > store experimental data collected by some research instruments we are > designing. I would like to be able to use R for the data analysis? Is > this feasible? Both file formats have structures which make their use > with R an attractive prospect. > > http://hdf.ncsa.uiuc.edu > http://www.unidata.ucar.edu/packages/netcdf/hdf5load() and hdf5save() are in 0.63. You need to have the relevant include and library files installed when building R in order to make them work, though. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._