Learn R Programming

Rnightlights (version 0.2.4)

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

Description

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

Usage

getNlUrlVIIRS(nlPeriod, tileNum, nlType)

Arguments

nlPeriod

character string the nlPeriod

tileNum

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

nlType

character the nlType

Value

Character string Url of the VIIRS tile file

Examples

Run this code
# NOT RUN {
tileUrl <- Rnightlights:::getNlUrlVIIRS("20171231", "1", "VIIRS.D")

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

tileUrl <- Rnightlights:::getNlUrlVIIRS("2015", "1", "VIIRS.Y")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab