R/crop.R

#' @include class-LulcRasterStack.R LulcRasterStack.R
NULL

setMethod("crop", c("ContinuousLulcRasterStack","ANY"),
          function(x, y, ...) {
              xx <- crop(as(x, "RasterStack"), y, ...)
              stack(xx)
              ## ContinuousLulcRasterStack(stack(xx),
              ##                              categories=x@categories,
              ##                              labels=x@labels,
              ##                              t=x@t)
          }
          )
              
              
              
simonmoulds/lulcc2 documentation built on Dec. 23, 2021, 2:24 a.m.