periodtoMap: period to full path of the NDVI map.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Returns the full path of the map of a given period and a given year.

Usage

1
periodtoMap(ndvidirectory, region, year, period, type = "VITO_CLIP")

Arguments

ndvidirectory

path of the ndvi image folder (GeoTIFF files). /cr Please note that paths to files in R can be specified with either "/" or "\\" in Windows OS and with "/" in UNIX OS.

region

name of the region, same as in the name of the ndvi images.

year

year of the map to load

period

period of the map to load. Be careful, for GIMMS data, period is between 1 and 24 while for VITO data, period is between 1 and 36.

type

type of nomenclature followed by the NDVI images : "VITO_CLIP", "VITO_VGT" or "GIMMS" (see details for more information).
By default, type = "VITO_CLIP".

Details

More about the variable type :
type = GIMMS : nomenclature from Global Land Cover Facility
[RE][YY][MMM][DDD].[SAT]-VIg.tif

type = VITO_VGT : FreeVGT VITO's nomenclature
NDV_[YYYYMMDD]_[REGION]_Extract.tif

type = VITO_CLIP : nomenclature after clipping the images in a particular region.
[REGION][YYYY]M[MM]P[D].tif

Value

Returns the complete path of the desired map. If the map doesn't exist, an error message is displayed.

Author(s)

Romain Frelat and Bruno Gerard

See Also

timetoMap

Examples

1
2
3
4
5
6
7
8
9
library(ndvits)
# Local variables
ndvidirectory=paste(system.file("extdata/VITO_Mzimba", package="ndvits"), "/", sep="")
region="Mzimba"
year=2004
period=15

filein=periodtoMap(ndvidirectory,region, year, period)
print(filein)

ndvits documentation built on May 2, 2019, 4:47 p.m.

Related to periodtoMap in ndvits...