View source: R/monthlyIndices.R
monthlyIndices | R Documentation |
Create numeric monthly indices from (local or online) GIMMS NDVI3g filenames
as input for the monthlyComposite
function.
monthlyIndices(
x,
version = 1L,
pos1 = ifelse(version == 1, 15L, 4L),
pos2 = ifelse(version == 1, 23L, 8L),
timestamp = FALSE,
...
)
x |
|
version |
|
pos1, pos2 |
|
timestamp |
|
... |
Currently not used. |
A numeric
vector with unique monthly indices or, if
timestamp = TRUE
, the actual timestamps as Date
objects.
monthlyComposite
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.