且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以 R 对象格式保存栅格数据?

更新时间:2021-11-07 23:21:58

您可以像其他 R 对象一样使用 save 命令保存栅格.

You can save rasters, like other R objects, using the save command.

save(r,file="r.Rdata")

在另一台计算机上,您可以使用

On a different computer, you can load that file using

load("r.Rdata")

这将带回您工作区中的光栅 r.

which will bring back the raster r in your workspace.

我已经在 Windows 和 Linux 上尝试过这个,它从来没有出现问题

I have tried this across Windows and Linux and it never gives problems