使用r raster package ver 2.5-2编写压缩的netcdf4文件时收到错误消息。
r <- raster(system.file("external/test.grd", package="raster"))
s <- stack(r, r*2)
writeRaster(s,"test.nc",format="CDF",compression=7)
错误:
Error in R_nc4_create: Permission denied (creation mode was 4096)
或:
Error return from C call R_nc4_put_att_double for attribute _FillValue