Home > database >  Is there a way to merge 41 nc files into one file?
Is there a way to merge 41 nc files into one file?

Time:03-19

I have 41 nc files, all containing climate data for 41 separate years. Is there a way to merge these files together on r?

CodePudding user response:

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).

CodePudding user response:

While you have tagged R, this is very easily done on the command line using CDO. As simple as:

cdo mergetime *.nc out.nc
  • Related