monthlyIndices {gimms} | R Documentation |
Create Monthly Indices from NDVI3g Files
Description
Create numeric monthly indices from (local or online) GIMMS NDVI3g filenames
as input for the monthlyComposite
function.
Usage
monthlyIndices(
x,
version = 1L,
pos1 = ifelse(version == 1, 15L, 4L),
pos2 = ifelse(version == 1, 23L, 8L),
timestamp = FALSE,
...
)
Arguments
x |
|
version |
|
pos1 , pos2 |
|
timestamp |
|
... |
Currently not used. |
Value
A numeric
vector with unique monthly indices or, if
timestamp = TRUE
, the actual timestamps as Date
objects.
See Also
Examples
## NDVI3g.v1
gimms_files_v1 <- readRDS(system.file("extdata", "inventory_ecv1.rds", package = "gimms"))
monthlyIndices(gimms_files_v1[1], version = 1) # indices
monthlyIndices(gimms_files_v1[1], version = 1, timestamp = TRUE) # dates
## Similarly, NDVI3g.v0
gimms_files_v0 <- readRDS(system.file("extdata", "inventory_ecv0.rds", package = "gimms"))
gimms_files_v0 <- rearrangeFiles(gimms_files_v0) # reorder by date
monthlyIndices(gimms_files_v0[1:12], version = 0)
monthlyIndices(gimms_files_v0[1:12], version = 0, timestamp = TRUE)
[Package gimms version 1.2.2 Index]