简体   繁体   中英

Aggregating netCDF files with R

Looking for an aggregation of two netCDF file in order to have only one file. 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). 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. The final file should regroupe 4 variables from 01/01/1995 00h00 to 01/01/2000 00h00.

I don't know how I can do that with R, I tried with 'ncdf' but it is just a creation...

Tkx!

I would use the cdo toolset for this. cdo has the cat option which you can use to concatenate NetCDF files, which is what you need. Even if this does not work, cdo is bound to have an option of doing what you need. See the cdo documentation for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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