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

Description Usage Arguments Value Examples

View source: R/tiles.R

Description

Get the list a VIIRS tiles that a polygon intersects with

Usage

1

Arguments

shpPolygon

a SpatialPolygon or SpatialPolygons

Value

Character vector of the intersecting tiles as given by getNlTiles

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
#download shapefile if it doesn't exist
ctryShapefile <- Rnightlights:::dnldCtryPoly("KEN")

#read in shapefile top layer
ctryPoly <- readCtryPolyAdmLayer("KEN",
    Rnightlights:::getCtryShpLyrNames("KEN",0))

#get list of intersecting tiles
tileList <- Rnightlights:::tilesPolygonIntersectVIIRS(ctryPoly)

## End(Not run)

chrisvwn/Rnightlights documentation built on Sept. 7, 2021, 1:44 a.m.