Learn R Programming

rLandsat (version 0.1.1)

landsat_download: Downlaod Landsat Files from URL

Description

Downlaod Landsat Files from URL

Usage

landsat_download(download_url, dest_file, entity_id = NULL,
  folder_wise = FALSE)

Arguments

download_url

vector of urls to be downloaded

dest_file

the destination folder where the files are to be downloaded

entity_id

product id correspoding to the urls if the downloads need to be in folder wise for AWS links

folder_wise

if the downloads need to be in folder wise for AWS links

Value

vector of failed urls

Details

Caution: use entity_id and folder_wise ONLY in case of downloading the individual bands (like from AWS). Get the downlaod urls from espa functions in this library. View the demo

Examples

Run this code
# NOT RUN {
# save files to the destination path provided
## returns the index of the failed urls
landsat_download("https://edclpdsftp.cr.usgs.gov/orders/order_id1.tar.gz", dest_file = tempdir())

# }

Run the code above in your browser using DataLab