简体   繁体   English

无法在R中打开NetCDF版本4文件

[英]Unable to open NetCDF version 4 files in R

It seems that the current version of the ncdf package is not able to open NetCDF Version 4 files. 似乎当前版本的ncdf软件包无法打开NetCDF版本4文件。 See: Error when trying to import NetCDF to R 请参阅: 尝试将NetCDF导入R时出错

In the resolution to that question, Johannes explained that he managed to run the ncdf4 package on a Windows machine and open the file that way. 在该问题的解决方案中,Johannes解释说他设法在Windows机器上运行ncdf4包并以这种方式打开文件。

However, when I try to run the ncdf4 package, I receive the error: "Error: package 'ncdf4' was built before R 3.0.0: please re-install it". 但是,当我尝试运行ncdf4包时,我收到错误:“错误:包'ncdf4'是在R 3.0.0之前构建的:请重新安装它”。 Does anyone know how to run this package on a Windows machine? 有谁知道如何在Windows机器上运行此包? (In the previous thread, Johannes said "package installation was a little bit complicated under win 64bit".) (在之前的帖子中,Johannes说“在win 64bit下,软件包安装有点复杂”。)

Other ideas on how to load this file would also be appreciated. 关于如何加载此文件的其他想法也将不胜感激。

Thanks. 谢谢。

I had the same problem, one way to get around the installation issue can be found here in the ncdf documentation: http://cirrus.ucsd.edu/~pierce/ncdf/ 我遇到了同样的问题,可以在ncdf文档中找到解决安装问题的一种方法: http ://cirrus.ucsd.edu/~pierce/ncdf/

Download the zip file from the following link 从以下链接下载zip文件

MS Windows (32-bit R version 3.0.1): http://cirrus.ucsd.edu/~pierce/ncdf/win32/ncdf4_1.9.zip MS Windows(32位R版本3.0.1): http//cirrus.ucsd.edu/~pierce/ncdf/win32/ncdf4_1.9.zip

MS Windows (64-bit R version 3.1.0): http://cirrus.ucsd.edu/~pierce/ncdf/win64/ncdf4_1.12.zip MS Windows(64位R版本3.1.0): http//cirrus.ucsd.edu/~pierce/ncdf/win64/ncdf4_1.12.zip

Installation for windows: 窗户安装:

Use the R graphical user interface and pick the menu item to "install a package from a local file". 使用R图形用户界面并选择菜单项“从本地文件安装包”。 Then select the ncdf4_1.9.zip file" 然后选择ncdf4_1.9.zip文件“

Hope this helps! 希望这可以帮助!

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

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