Learn R Programming

rts (version 1.1-14)

read.rts: Read raster time Series data from a file

Description

Read a raster time series object from a file.

Usage

read.rts(filename,...)

Value

RasterBrickTS

Arguments

filename

Filename (character)

...

see details

Details

This function reads a raster time series object which has been writen by write.rts. Instead of read.rts, the rts function can be used (usage: rts(filename)).

By default, the Raster Time Series is read as the class of SpatRasterTS, but the user can provide cls argument to specify a different rts class (e.g., cls='RasterBrickTS')

See Also

write.rts, rts

Examples

Run this code
if (FALSE) {
file <- system.file("external/ndvi", package="rts")

rt <- read.rts(file)

rt

# or alternatively:
rt <- rts(file)
}

Run the code above in your browser using DataLab