Description Usage Arguments Details Value Author(s) See Also Examples
Extract NDVI time series from different data source. Group points or polygon together, compute savitzky-Golay filter. Also exectute a basic analysis (STL decomposition).
1 2 3 4 5 |
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. |
Ystart |
starting year of the analysis (in four-digit format). |
Yend |
ending year of the analysis (in four-digit format). |
outfile |
name of the file where the time series are saved (extension ".txt"). |
outfile2 |
file where the seasonal decomposotion of the time serie is saved (extenstion ".pdf"). By default, outfile2="TS.pdf". |
outfile3 |
file where the graphs of the different time serie (stocked) is saved (extenstion ".pdf"). If outfile3=FALSE, graphs are displayed in R (but not saved). By default, outfile3=FALSE |
shapeext |
extension of the shape/kml file : "shp" for a Esri shapefile or "kml" for a kml file from Google earth . |
fct |
function applied while grouping points of a same categorie together : "mean","max" or "min". By default, fct="mean". |
SGfilter |
TRUE to apply a Savitzky-Golay filter to the time series, FALSE otherwize. By default, SGfilter=TRUE. |
nSG |
moving window of the Savitzky-Golay filter. By default, nSG="5,5" (symetric windows taking into account 5 points backward and 5 points forward. |
DSG |
polynomial degree of the function use in the Savitzky-Golay filter. By default, DSG=0. |
title |
title of the graph (saved in outfile3) By default, title="NDVI time series". |
type |
type of nomenclature followed by the NDVI images : "VITO_CLIP", "VITO_VGT" or "GIMMS" (see details for more information). |
nb |
number of time series plotted in the same graph by the function |
More about the variable type :
type=GIMMS : nomenclature from Global Land Cover Facility
[RE][YY][MMM][DDD].[SAT]-VIg.tif
REidentifies the continent (AF for Africa,AZ for Australia and New Zealand, EA for Eurasia, NA for North America and SA for South America and Central America)
YYthe two last digits of the year
MMMthree-letter abbreviation of the month
DDDidentifies the composite period, 15a denotes the days 1-15 of the month, and 15b denotes the days from 16 to the end of the month.
SATidentifies the satellite, NOAA-7, 9, 11, 14, 16, or 17 from which the data originated.
type=VITO_VGT : FreeVGT VITO's nomenclature
NDV_[YYYYMMDD]_[REGION]_Extract.tif
YYYYidentifies the year (four digits)
MMidentifies the months (two digits)
DDidentifies the date of the period : "01", "11" or "21" (10-day composite).
REGIONidendifies the region selected while extracting maps
type=VITO_CLIP : nomenclature after clipping the images in a particular region.
[REGION][YYYY]M[MM]P[D].tif
REGIONthe region as entered while clipping data.
YYYYidentifies the year (four digits)
MMidentifies the months (two digits)
Didentifies the period (0, 1 or 2).
type = FILES :
ndvidirectory should contain a file respecting the following format :
N
path\image1.tif
path\image2.tif
...
path\imageN.tif
with N
the number of image files.
The list of images should be in chronological order, and include the complete path to the file,
unless the files are located in the working directory from which R is run. Only the N first images in the file will be processed.
nomenclature after clipping the images in a particular region.
data.frame with the extracted and processed time series.
R. Frelat, B. Gerard
ExtractFile
, ExtractGIMMS
, ExtractVGT
, ExtractVito
,
normNDVI
, PlotTS
, STLperArea
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #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="")
outfile = "mzimbaTS.txt"
outfile2 = "MzimbaTS.pdf"
#executing TimeSeriesAnalysis
## Not run: signal = TimeSeriesAnalysis(shape, shapedir, ndvidirectory, region,
Ystart, Yend, outfile, outfile2)
# Enter "Village" when asked
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.