R/index.R

Defines functions `index<-.SpatRasterTS` `index.SpatRasterTS` `index<-.RasterStackBrickTS` `index.RasterStackBrickTS`

# Author: Babak Naimi, naimi.b@gmail.com
# Date :  July 2012
# Last Update :  October 2021
# Version 1.1
# Licence GPL v3



`index.RasterStackBrickTS` <- function(x,...){
  index(x@time,...)
}

`index<-.RasterStackBrickTS` <- function(x,value){
  index(x@time) <- value
}


`index.SpatRasterTS` <- function(x,...){
  index(x@time,...)
}


`index<-.SpatRasterTS` <- function(x,value){
  index(x@time) <- value
}

Try the rts package in your browser

Any scripts or data that you put into this service are public.

rts documentation built on Oct. 1, 2023, 9:07 a.m.