getNlUrlVIIRS: Function to return the url of the VIIRS tile to download

Description Usage Arguments Value Examples

View source: R/getnlurl.R

Description

Function to return the url of the VIIRS tile to download given the year, month, and nlTile index

Usage

1
2
3
4
5
6
getNlUrlVIIRS(
  nlPeriod,
  tileNum,
  nlType,
  configName = pkgOptions(paste0("configName_", nlType))
)

Arguments

nlPeriod

character string the nlPeriod

tileNum

The integer index of the tile to download as given by getNlTiles

nlType

character the nlType to consider

configName

character the configName to consider

Value

Character string Url of the VIIRS tile file

Examples

1
2
3
4
5
6
7
8
## Not run: 
tileUrl <- Rnightlights:::getNlUrlVIIRS("20171231", "1", "VIIRS.D")

tileUrl <- Rnightlights:::getNlUrlVIIRS("201401", "1", "VIIRS.M")

tileUrl <- Rnightlights:::getNlUrlVIIRS("2015", "1", "VIIRS.Y")

## End(Not run)

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