getlandsat introduction

Get Landsat 8 Data from AWS public data sets. Includes functions for listing images and fetching them.

Install

Dev version

devtools::install_github(c("ropensci/getlandsat"))
library("getlandsat")

Get an image

Returns path to the image

Another one

Caching

When requesting an image, we first check if you already have that image. If you do, we return the path to the file. If not, we get the image, and return the file path.

Note the message given.

See ?lsat_cache for cache management functions.

Visualize

library("raster")
x <- lsat_cache_details()
img <- raster(x[[1]]$file)
plot(img)
plot of chunk unnamed-chunk-10

plot of chunk unnamed-chunk-10