Skip to content
Prev 26050 / 29559 Next

Multi-file raster stack from netcdf specifying levels

Maybe you can try something like this?

h2osoil.l1 <- do.call(stack, lapply(files, function(file) raster(file,
varname='H2OSOI', level=1)))
h2osoil.l2 <- do.call(stack, lapply(files, function(file) raster(file,
varname='H2OSOI', level=2)))
...
h2osoil.l15 <- do.call(stack, lapply(files, function(file) raster(file,
varname='H2OSOI', level=15)))


On Thu, Oct 19, 2017 at 6:33 PM, Thiago V. dos Santos via R-sig-Geo <
r-sig-geo at r-project.org> wrote: