landsat_download: Downlaod Landsat Files from URL

Description Usage Arguments Details Value Examples

Description

Downlaod Landsat Files from URL

Usage

1
2
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

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

Value

vector of failed urls

Examples

1
2
3
# 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())

rLandsat documentation built on July 7, 2019, 1:03 a.m.