TheiaTile {theiaR} | R Documentation |
A tile from Theia
Description
Generate and manage a tile from Theia (download, check, load).
Usage
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)
Arguments
- t:
A
TheiaTile
object- file.path:
The path to the zip file containing the tile
- url:
The url to download the tile
- file.hash:
The md5sum used to check the zip file
- check:
Whether or not to check existing files on tile's creation
- quiet:
Control verbose output
- auth:
A character string giving the file path to Theia credentials. Or a
TheiaAuth
object- overwrite:
Overwrite existing tiles (default to 'FALSE')
- bands:
A character vector of bands to load from tiles
Details
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