简体   繁体   English

R中的“通用数据格式”

[英]“Common Data Format” in R

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.). 我正在考虑开始使用R进行一些数据分析。我以前从未使用过R(或花哨的数据格式,如HDF,CDF等)。 Now the data that is available from NASA's website is either ASCII or in CDF (Common Data Format). 现在,NASA网站上提供的数据可以是ASCII或CDF(通用数据格式)。 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. 我本来打算使用CDF,但我一直无法找到一种在R中读取CDF文件的方法。我知道HDF5可以读入R中,但CDF却没有任何成功。

Goddard Space Flight Center's CDF page provides some data translation tools but unfortunately no tool to convert CDF to HDF5. 戈达德太空飞行中心的CDF页面提供了一些数据转换工具,但不幸的是,没有将CDF转换为HDF5的工具。 http://cdf.gsfc.nasa.gov/html/dttools.html http://cdf.gsfc.nasa.gov/html/dttools.html

Any pointers on how to go about doing so would be greatly helpful. 有关如何执行此操作的任何指示都将非常有帮助。

Thanks! 谢谢!

You need the RNetCDF package. 您需要RNetCDF软件包。 The read.nc function will put all of the CDF file items into a list. read.nc函数会将所有CDF文件项放入列表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM