lsEspaOrderImages: Make a request to ESPA for pre-processing Landsat images

Description Usage Arguments Details Value Examples

View source: R/lsEspaOrderImages.R

Description

lsEspaOrder makes a request to the EROS Centre Science Processing Architecture (ESPA) to further process level-1 Landsat scenes.

Usage

1
2
3
4
5
6
7
lsEspaOrderImages(
  search.res,
  username,
  password,
  product = c("sr", "source_metadata"),
  verbose = FALSE
)

Arguments

search.res

the results from ls7Search or ls8Search.

username

USGS's ‘EarthExplorer’ username.

password

USGS's ‘EarthExplorer’ password.

product

the acronym of the requested product (see the details).

verbose

logical argument. If TRUE, the function prints the running steps and warnings.

Details

Landsat Level-1 images are pre-processed on demand by the EROS Centre Science Processing Architecture (ESPA). An order is placed to ESPA with the level-1 images that must be pre-processed (search.res and the requested final product (product). The products are identified by the following short-names:

Value

this function does not return anything. It makes a petition to process level-1 images before doing the download.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
wdir <- file.path(tempdir(),"Path_for_downloading_folder")
# search Landsat 7 level-1
sres <- ls7Search(startDate = as.Date("01-01-2017", "%d-%m-%Y"),
                  endDate = as.Date("07-01-2017", "%d-%m-%Y"),
                  lonlat = c(-1.64323, 42.81687),
                  AppRoot = wdir)
# request to ESPA the pre-pocessing of level-1 images 
# to get the surface reflectance
order <- lsEspaOrderImages(search.res = sres,
                           username = "username", 
                           password = "password", 
                           product = 'sr',
                           verbose = FALSE)

## End(Not run)

RGISTools documentation built on July 2, 2020, 3:58 a.m.