orbits_intersects: Select the orbit intersecting the extent

Description Usage Arguments Value Note Author(s)

View source: R/fct_orbits_intersects.R

Description

Function which returns the orbit IDs of the Sentinel-2 orbits which overlap a provided extent.

Usage

1
orbits_intersects(tiles, all = FALSE, out_format = "id", .s2orbits = NULL)

Arguments

tiles

'sf' object with the tiles spatial extent.

all

logical: if TRUE, all the orbits overlapping the extent are provided; if FALSE (default), unnecessary orbits are skipped. Unnecessary orbits are orbits which overlaps the extent for an area already covered by another orbit. In case the extent is all included in an overlapping area, only one of the two candidate orbits is returned (the first in alphabetical order).

out_format

character: if "sf", the spatial object of the overlapping orbits is returned; if "id" (default), a character vector with the orbit IDs.

.s2orbits

output of [s2_orbits()] function (it is possible to pass it in order to speed up the execution; otherwise leave to NULL and it will be generated within the function).

Value

the orbits intersecting the extent (see argument 'out_format').

Note

License: GPL 3.0

Author(s)

Pascal Obstetar (2020) pascal.obstetar@gmail.com


pobsteta/shinyCNES documentation built on April 28, 2021, 9:43 a.m.