简体   繁体   English

使用R聚合netCDF文件

[英]Aggregating netCDF files with R

Looking for an aggregation of two netCDF file in order to have only one file. 寻找两个netCDF文件的聚合,以便只有一个文件。 In the first file I have data from 01/01/1995 00h00 to 01/01/1999 00h00 and in the second file it is from 01/01/1999 00h00 to 01/01/2000 00h00 (so one date in common). 在第一个文件中,我有从01/01/1995 00h00到01/01/1999 00h00的数据,在第二个文件中它是从01/01/1999 00h00到01/01/2000 00h00(所以共同的一个日期)。 For this step this is the same variable into the two files. 对于此步骤,这是两个文件中的相同变量。

After that I want to aggregate severals netCDF files having the same period but different variables. 之后我想聚合几个具有相同周期但不同变量的netCDF文件。 The final file should regroupe 4 variables from 01/01/1995 00h00 to 01/01/2000 00h00. 最终文件应该从01/01/1995 00h00到01/01/2000 00h00重新组合4个变量。

I don't know how I can do that with R, I tried with 'ncdf' but it is just a creation... 我不知道如何用R做到这一点,我试过'ncdf',但它只是一个创作......

Tkx! TKX!

I would use the cdo toolset for this. 我会使用cdo工具集 cdo has the cat option which you can use to concatenate NetCDF files, which is what you need. cdocat选项,可以用来连接NetCDF文件,这是你需要的。 Even if this does not work, cdo is bound to have an option of doing what you need. 即使这不起作用, cdo仍然可以选择做你需要的东西。 See the cdo documentation for more details. 有关更多详细信息,请参阅cdo文档

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

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