Skip to content
Prev 27804 / 29559 Next

Combining different RasterBricks maintaining z-values (dates)

Hi Jes?s,

You can use the getZ and setZ functions in the raster package to extract
and then reassign Z values.
NULL
class      : RasterStack
dimensions : 681, 841, 572721, 24  (nrow, ncol, ncell, nlayers)
resolution : 0.05, 0.05  (x, y)
extent     : 111.975, 154.025, -44.025, -9.975  (xmin, xmax, ymin, ymax)
crs        : +proj=longlat +datum=WGS84
names      : X2000.01.16.1, X2000.02.15.1, X2000.03.16.1, X2000.04.16.1,
X2000.05.16.1, X2000.06.16.1, X2000.07.16.1, X2000.08.16.1, X2000.09.16.1,
X2000.10.16.1, X2000.11.16.1, X2000.12.16.1, X2000.01.16.2, X2000.02.15.2,
X2000.03.16.2, ...
Date        : 2000-01-16 - 2000-12-16 (range)

Cheers,

Steve
On Sat, 30 Nov 2019 at 10:06, J Rojo <jru85yebe at hotmail.com> wrote:

            

  
  
Message-ID: <CAJefdj6--CDh_yhdWQfBmM2yH4TomPiJpOBftfw1TsY0q8bBnA@mail.gmail.com>
In-Reply-To: <AM6PR10MB338474AC35DEB2F6654144BEB4460@AM6PR10MB3384.EURPRD10.PROD.OUTLOOK.COM>