Description Usage Arguments Details Value Functions See Also Examples
These functions provide operations to work with tiles registered in cubes.
1 2 3 4 5 6 7 8 9 10 11 | .verify_which(which, cube)
tiles_which(cube, prefix = NULL, geom = NULL)
list_tiles(cube)
.fetch_tiles(cube, which = NULL, cache = NULL, progress_bar = FALSE)
tiles_sfc(cube, which = NULL)
.tiles_to_sfc(cube, which = NULL)
|
which |
A |
cube |
A |
prefix |
A |
geom |
A |
cache |
A |
progress_bar |
A |
The function .verify_which
is a internal function used to verify the
consistency of which
parameter of some tiles functions.
The function tiles_which
requires sf
package to compute
intersection. It can be used in which
parameter of functions
cube_filter
, stacks
, tiles_which
Fetching tiles can be an expensive task. You can filter tiles that intersects
your area of interest by providing which
parameter.
The function cubes_sfc
requires sf
package.
The function tiles_to_sfc
requires sf
package.
Either a logical
or integer
vector.
A logical
vector.
An EOCubes_tilelist
object that lists all tiles from a cube.
An EOCubes_tiles
object.
A sfc
object from sf
package.
A sfc
object from sf
package.
.verify_which
: Verifies if which parameter is valid for a given
list of tiles.
tiles_which
: Returns a logical
vector indicating
selected tiles that satisfies filter.
list_tiles
: Lists all registered tiles in a cube.
.fetch_tiles
: Fetches tiles in a cube.
tiles_sfc
: Returns all tiles extents in a sfc
object.
.tiles_to_sfc
: Converts tiles extents to a sfc
object.
1 2 3 4 5 6 7 8 9 10 11 12 | x <- remote("localhost")
cub1 <- cube("MOD13Q1/006", x)
tiles_index <- tiles_which(cub1, "h13v10") # select 'h13v10' tile
# required by sf package
if (require("tibble") && require("sf")) {
tiles_sfc(cub1, which = tiles_index)
file <- system.file("shape/example.shp", package = "EOCubes")
tiles_index <- tiles_which(cub1, geom = file) # select all tiles that intersect shapefile
tiles_sfc(cub1, which = tiles_index)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.