Description Usage Arguments Value Author(s) Examples
Load geotiff maps partially, only the area of interest delimited by xlim and ylim.
1 |
x |
full path to the map to be loaded |
xlim |
a two dimensions vector containing the longitude limits of the area of interest. |
ylim |
a two dimensions vector containing the latitude limits of the area of interest. |
... |
further arguments sent to |
Returns the map of the region of interest.
Romain Frelat and Bruno Gerard
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(ndvits)
# Local variables
ndvidirectory=paste(system.file("extdata/VITO_Mzimba", package="ndvits"), "/", sep="")
region="Mzimba"
year=2004
#Define the limit of the area of interest :
xlim=c(33.5, 33.6)
ylim=c(-11.6, -11.4)
#call timetoMap to get the full path to the image
filein=timetoMap(ndvidirectory,region, year, 1, 1)
map = readpartGDAL(filein, xlim, ylim)
#display the loaded map
savemap(map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.