Learn R Programming

spatialEco (version 0.1-5)

download.hansen: Download Hansen Forest 2000-2013 Change

Description

Download of Hansen Global Forest Change 2000-2013

Usage

download.hansen(tile, data.type = c("loss"), download.folder = getwd())

Arguments

tile
Granule index (See project URL for granule grid index)
data.type
Type of data to download options: 'treecover2000', 'loss', 'gain', 'lossyear', 'datamask', 'first', 'last'
download.folder
Destination folder

Value

Downloaded Hansen forest loss tif files

References

Hansen, M. C., P. V. Potapov, R. Moore, M. Hancher, S. A. Turubanova, A. Tyukavina, D. Thau, S. V. Stehman, S. J. Goetz, T. R. Loveland, A. Kommareddy, A. Egorov, L. Chini, C. O. Justice, and J. R. G. Townshend. (2013) High-Resolution Global Maps of 21st-Century Forest Cover Change. Science 342:850-53.

Examples

Run this code
## Not run: 
# # Download single tile
#  download.hansen(tile=c('00N', '130E'), data.type=c('loss', 'lossyear'), 
#                  download.folder=getwd())
# 
# # Batch download of multiple tiles
# tiles <- list(c('00N', '140E'), c('00N', '130E'))
#   for( j in 1:length(tiles)){
#     download.hansen(tile=tiles[[j]], data.type=c('loss'))  
#  }
# ## End(Not run)

Run the code above in your browser using DataLab