Learn R Programming

Rnightlights (version 0.1.2)

tilesPolygonIntersectVIIRS: Get the list of VIIRS tiles that a polygon intersects with

Description

Get the list a VIIRS tiles that a polygon intersects with

Usage

tilesPolygonIntersectVIIRS(shpPolygon)

Arguments

shpPolygon

a SpatialPolygon or SpatialPolygons

Value

Character vector of the intersecting tiles as given by getNlTiles("VIIRS")

Examples

Run this code
# NOT RUN {
ctryShapefile <- dnldCtryPoly("KEN")
ctryPoly <- rgdal::readOGR(getPolyFnamePath("KEN"), getCtryShpLyrName("KEN",0))
tileList <- tilesPolygonIntersectVIIRS(ctryPoly)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab