有没有办法将 41 个 nc 文件合并为一个文件?
我有 41 个 nc 文件,全部包含 41 个不同年份的气候数据。有没有办法在 r 上将这些文件合并在一起?
I have 41 nc files, all containing climate data for 41 separate years. Is there a way to merge these files together on r?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
stars
包就能做到这一点(以及更多):从多个文件读取数据集。简单的 Google 搜索也会为您提供大量使用
raster
包的信息和教程 (例如)。The
stars
package will do just that (and much more): Reading datasets from multiple files.A simple Google search will also give you lots of info and tutorials using the
raster
package (for example).当您标记了 R 后,可以使用 CDO 在命令行上轻松完成此操作。很简单:
While you have tagged R, this is very easily done on the command line using CDO. As simple as: