1

I am thinking of starting to do some data analysis using R. I have never used R before (or fancy data formats like HDF, CDF etc.). Now the data that is available from NASA's website is either ASCII or in CDF (Common Data Format). I was thinking of going with CDF but I have not been able to find a way to read CDF files in R. I know HDF5 can be read into R but did not have any success with CDF.

Goddard Space Flight Center's CDF page provides some data translation tools but unfortunately no tool to convert CDF to HDF5. http://cdf.gsfc.nasa.gov/html/dttools.html

Any pointers on how to go about doing so would be greatly helpful.

Thanks!

Dima Chubarov
  • 16,199
  • 6
  • 40
  • 76
toylas
  • 437
  • 2
  • 6
  • 19

1 Answers1

2

You need the RNetCDF package. The read.nc function will put all of the CDF file items into a list.

John
  • 23,360
  • 7
  • 57
  • 83
  • Thanks for the answer John! Does it read cdf files directly or do I first convert them to netCDF and then read them? – toylas Oct 26 '13 at 04:22