0

我试图从 Rstudio 的 FTP 下载中打开以下 ncdf 文件,但没有成功。

require(ncdf4)
download.file('ftp://sioftp.ucsd.edu/CW3E_DataShare/Rutz_AR_Catalog/Rutz_ARCatalog_MERRA2_1981.nc',
              destfile = 'Rutz_ARCatalog_MERRA2_1981.nc', mode = 'wb')
temp <- nc_open('Rutz_ARCatalog_MERRA2_1981.nc')

我开始时mode = 'w',R 每次使用时都会因致命错误而崩溃nc_open()。基于这个问题,我将其修改为mode = 'wb'. 现在它不会崩溃,但我得到“R_nc4_open 中的错误:NetCDF:HDF 错误”。该文件约为 8-9 GB,这可能会导致问题。有没有办法弄清楚这里出了什么问题?

会话信息:

R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ncdf4_1.17
4

0 回答 0