mapmaxyear: Maximum NDVI value of a given year

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

Description

Compute for each pixel, the maximum NDVI value of the year.

Usage

1
mapmaxyear(ndvidirectory, region, year, xlim = NULL, ylim = NULL, outfile = FALSE, 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 analysis (in four-digit format).

xlim

a two dimensions vector containing the longitude limits of the area of interest.
xlim=NULL indicates no longitude limits. By default, xlim=NULL.
Please note that xlim have to be in the same units and projection as the ndvi maps.

ylim

a two dimensions vector containing the latitude limits of the area of interest.
ylim=NULL indicates no longitude limits. By default, ylim=NULL.
Please note that ylim have to be in the same units and projection as the ndvi maps.

outfile

file where the map of the maximum is saved (extension=".tif").
If outfile=FALSE, the map is not saved. By default, outfile = FALSE.

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

mapmaxyear load one maps after another and keep the maximum. It is less memory and time demanding than maplocalstat.

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

The function returns the map with the maximum of the year.

Author(s)

Romain Frelat and Bruno Gerard

See Also

maplocalstat

Examples

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

#processing the map of the maximum in 2004
max=mapmaxyear(ndvidirectory, region, year)

#display the map
savemap(max)

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

Related to mapmaxyear in ndvits...