orgTime | R Documentation |
This function lets you define the period to be filtered, the output temporal resolution, and select the required data from your input files.
## S4 method for signature 'character' orgTime( files, nDays = "asIn", begin = NULL, end = NULL, pillow = 75, pos1, pos2, format = "%Y%j" ) ## S4 method for signature 'Date' orgTime(files, nDays = "asIn", begin = NULL, end = NULL, pillow = 75) ## S4 method for signature 'Raster' orgTime( files, nDays = "asIn", begin = NULL, end = NULL, pillow = 75, pos1, pos2, format = "%Y%j" )
files |
A |
nDays |
Time interval for output layers. Defaults to |
begin |
|
end |
|
pillow |
|
pos1, pos2, format |
Arguments passed to |
A list
with the following slots (to be completed):
$inSeq
$outSeq
$inDoys
$inputLayerDates
$outputLayerDates
$call
Matteo Mattiuzzi, Florian Detsch
seq.Date()
.
# Using MODIS files files <- c("MOD13A2.A2010353.1_km_16_days_composite_day_of_the_year.tif", "MOD13A2.A2011001.1_km_16_days_composite_day_of_the_year.tif", "MYD13A2.A2010361.1_km_16_days_composite_day_of_the_year.tif", "MYD13A2.A2011009.1_km_16_days_composite_day_of_the_year.tif") orgTime(files) orgTime(files,nDays=2,begin="2010350",end="2011015") # Using other files, e.g. from AVHRR GIMMS NDVI (Jul 1981 to Dec 1982) ## Not run: library(gimms) files.v1 <- system.file("extdata/inventory_ecv1.rds", package = "gimms") files.v1 <- readRDS(files.v1)[1:3] dates.v1 <- monthlyIndices(files.v1, timestamp = TRUE) orgTime(dates.v1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.