I have 41 nc files, all containing climate data for 41 separate years. Is there a way to merge these files together on r?
Asked
Active
Viewed 71 times
2 Answers
1
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).

hrvg
- 476
- 3
- 6
1
While you have tagged R, this is very easily done on the command line using CDO. As simple as:
cdo mergetime *.nc out.nc

Robert Wilson
- 3,192
- 11
- 19