timetoMap: Time to name of the NDVI map.

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

Description

Return the complete directory of the map of a desired time.

Usage

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

Arguments

ndvidirectory

path to the ndvi images folder (GeoTIFF files).
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.
Please refer to details section for more information on the nomenclature.

year

year of the desired map

month

month of the desired map : number between 1 and 12

period

period of the desired map.
Please be aware that , for GIMMS data, period is a number between 1 and 2 while for VITO data, period is between 1 and 3.

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

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

Author(s)

Romain Frelat and Bruno Gerard

See Also

periodtoMap

Examples

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

filein=timetoMap(ndvidirectory,region, year, month, period)
print(filein)

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

Related to timetoMap in ndvits...