MODIStsp_date: Create a date vector from 'MODIStsp'-generated RasterStack

Description Usage Arguments Details Value Examples

View source: R/MODIStsp_date.R

Description

This function creates a vector of class Date that corresponds to the observations in MODIS data processed by MODIStsp.

Usage

1

Arguments

stack

A RasterStack object generated by MODIStsp(). Alternatively, a character vector of file names or file paths generated by MODIStsp from which dates should be extracted.

Details

The output of this function is most useful for passing as an argument to bfastSpatial(), which requires a date vector.

Value

A vector of class Date containing the dates for each raster layer.

Examples

1
2
3
4
## Not run: 
MODIStsp_date(raster_ts)

## End(Not run)

jnghiem/bfasttools documentation built on Nov. 4, 2019, 3:02 p.m.