I have 41 nc files, all containing climate data for 41 separate years. Is there a way to merge these files together on r?
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 ).
While you have tagged R, this is very easily done on the command line using CDO. As simple as:
cdo mergetime *.nc out.nc
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.