Description Usage Arguments Details Value Author(s) References Examples
Automates the download of Landsat based vcf products (Tree cover and tree cover change) from the ftp server, from a list of list of pathrows. Writes status of the download to a log file and recreates the directory organization of the ftp server locally.
1 2 | downloadPR(pr, name = "TC", year, dir, log = NULL,
baseURL = "ftp://ftp.glcf.umd.edu/glcf/", stubborn = 5)
|
pr |
List or numeric list. Classically the returned object from
|
name |
Character. Product name you wish to download. At the moment |
year |
Numeric or list. When |
dir |
Character. Directory where to write the downloaded data. |
log |
character. filename of the logfile. If NULL (default), a file
'downloadVCF.log' is created at the root of |
baseURL |
character. |
stubborn |
Numeric. Number of retries when for a reason or another the download fails |
Files are downloaded only if they have not been downloaded and written at the same location earlier, the files overwrite previous downloaded files that are == 0 bytes. (Performs some sort of updating of a local archive)
The list of file downloaded, plus eventual warning, or error messages
Loic Dutrieux
Land cover: See http://landcover.org/data/landsatTreecover/ Forest cover change: See http://landcover.org/data/landsatFCC/
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.