Merge netCDF files in R

Viewed 7594

I have 2 netCDF files (each .nc file has 4 variables: Susceptible, Infected, Recovered and Inhabitable. The dimension of each variable is 64 x 88). I would like to merge these 2 files into a single netCDF file such that the merged file will stack separately Susceptible from the 2 files, Infected from the 2 files, Recovered from the 2 files and Inhabitable from the 2 files.

Here are the 2 files(first and second)

Could anyone help me with this please?

Thanks in advance, Ashok

1 Answers
Related