TheiaTile | R Documentation |
Generate and manage a tile from Theia (download, check, load).
t <- TheiaTile$new(file.path, url, file.hash, check = TRUE, quiet = TRUE) t$download(overwrite = FALSE, check = TRUE, quiet = TRUE) t$check() t$extract(overwrite = FALSE, dest.dir = NULL) t$read(bands)
A TheiaTile
object
The path to the zip file containing the tile
The url to download the tile
The md5sum used to check the zip file
Whether or not to check existing files on tile's creation
Control verbose output
A character string giving the file path to Theia credentials.
Or a TheiaAuth
object
Overwrite existing tiles (default to 'FALSE')
A character vector of bands to load from tiles
TheiaTile$new(file.path, url, file.hash, check)
Create a new instance of
the class
t$download(auth, overwrite = FALSE, check = TRUE)
Download the
tiles of the collection and check the resulting files
t$check()
Check the tiles of the collection
t$extract(overwrite = FALSE, dest.dir = NULL)
Extract archive to
dest.dir if supplied, or to the same directory as the archive otherwise
t$read(bands)
Read requested bands, apply corrections on values
(as specified in Theia's product information), and return a RasterStack
t$bands
List bands available in the tile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.