Description Usage Arguments Details Value Author(s) See Also Examples
Extract time series from clipped VITO data.
1 2 | ExtractVito(shapefile, shapedir, ndvidirectory, region,
outfile = "TS.txt", Ystart, Yend, shapeext = "shp")
|
shapefile |
name of the shape/kml file with multi-points or polygons from where time series are extracted. |
shapedir |
path to the shape/kml file. |
ndvidirectory |
path to the ndvi images folder (GeoTIFF files). |
region |
name of the region, same as in the name of the ndvi images. |
outfile |
name of the file where the time series are saved (extension ".txt"). |
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 . |
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
REGIONthe region as entered while clipping data.
YYYYcorresponging to the year (four digits)
MMcorresponging to the months (two digits)
Dcorresponding to the period (0, 1 or 2).
Return the time series of the points/polygons in the shapefile over the desired period.
Romain Frelat and Bruno Gerard
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.