ExtractVito: Extract time series from clipped VITO data

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

Description

Extract time series from clipped VITO data.

Usage

1
2
ExtractVito(shapefile, shapedir, ndvidirectory, region, 
    outfile = "TS.txt", Ystart, Yend, shapeext = "shp")

Arguments

shapefile

name of the shape/kml file with multi-points or polygons from where time series are extracted.
For a shapefile called ‘name.shp’ , shapefile="name".
For a kml file, write the name of the layer.

shapedir

path to the shape/kml file.
For a shapefile, shapedir is the path to the folder containing the shapefile. For example if the directory of the shapefile is ‘C:/Dir/name.shp’, shapefile="C:/Dir/".
For a kml file, shapedir is the full directory of the kml file. For example shapefile="C:/Dir/name.kml".
Please note that paths to files in R can be specified with either "/" or "\\" in Windows OS and "/" in UNIX OS.

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.

outfile

name of the file where the time series are saved (extension ".txt").
By default, outfile = " .".

Ystart

starting year of the analysis (in four-digit format).

Yend

ending year of the analysis (in four-digit format).

shapeext

extension of the shape/kml file : "shp" for a Esri shapefile or "kml" for a kml file from Google earth .
By default, shapeext = "shp".

Details

Files should follow this nomenclature (type=VITO_CLIP):
After a process of clipping the images in a particular region, we rename the files as following :
[REGION][YYYY]M[MM]P[D].tif

Value

Return the time series of the points/polygons in the shapefile over the desired period.

Author(s)

Romain Frelat and Bruno Gerard

See Also

TimeSeriesAnalysis, ClipVGT

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#local variables
ndvidirectory=paste(system.file("extdata/VITO_Mzimba",
    package="ndvits"), "/", sep="")
region="Mzimba"
Ystart=2004
Yend=2009
shape="SLP_Mzimba"
shapedir=paste(system.file("extdata/shape", package="ndvits"),
    "/", sep="")

#executing ExtractFiles
signal = ExtractVito(shape, shapedir, ndvidirectory, region, 
    outfile = "TS-Mzimba.txt", Ystart = Ystart, Yend = Yend)

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

Related to ExtractVito in ndvits...