lsat_image: Get Landsat image(s)

View source: R/lsat_image.R

lsat_imageR Documentation

Get Landsat image(s)

Description

Get Landsat image(s)

Usage

lsat_image(x, overwrite = FALSE, ...)

Arguments

x

(character) A file name for a geotif file, will be more general soon.

overwrite

(logical) Will only overwrite existing path if TRUE. Deprecated, will be removed in the next version. If file exists we return that path so there's no chance of overwriting

...

Curl args passed on to crul::HttpClient()

Value

Path to the file, whether found in cache or new file requested.

See Also

lsat_cache()

Examples

## Not run: 
# pass an image name
(res <- lsat_list(max = 40))
tifs <- grep("\\.TIF$", res$Key, value = TRUE)
lsat_image(tifs[5])
lsat_image(tifs[6])
lsat_image(tifs[9])

# caching
## requesting an image you already have will return path if found
lsat_image(tifs[5])

## End(Not run)

ropenscilabs/getlandsat documentation built on Sept. 12, 2022, 4:08 p.m.