Learn R Programming

bfastSpatial (version 0.6.2)

subsetRasterTS: Trim raster time series

Description

Trim a time series RasterBrickStack based on a specified Landsat sensor or threshold date (year)

Usage

subsetRasterTS(x, sensor = NULL, minDate = NULL, maxDate = NULL, ...)

Arguments

x

RasterBrick or RasterStack

sensor

Character. Limit time series to specified sensor(s). Can take any combination of "ETM+ SLC-off", "ETM+ SLC-on", "ETM+", "TM", "OLI". Defaults to NULL (use all sensors).

minDate

Numeric. Optional: minumum date (in format c(year, julian day)) before which all layers will be removed from the RasterBrickStack.

maxDate

Numeric. Optional: maximum date (in format c(year, julian day)) after which all layers will be removed form the RasterBrickStack.

...

Additional arguments to be passed to raster::subset

Details

This function only supports Landsat data with associated scene ID's as names(x) at this time. Support for MODIS (and possibly other datasets) will follow in future versions.