Learn R Programming

Rnightlights (version 0.2.4)

downloadNlTilesVIIRS: Download VIIRS nightlight tile

Description

Download VIIRS nightlight tile

Usage

downloadNlTilesVIIRS(nlPeriod, tileNum,
  downloadMethod = pkgOptions("downloadMethod"), nlType,
  configName = pkgOptions(paste0("configName_", nlType)))

Arguments

nlPeriod

the nlPeriod of the tile to download

tileNum

the index of the tile as given by getNlTiles

downloadMethod

The method to use for download.

nlType

A character string of nlType

configName

character the type of raster being processed

Value

TRUE/FALSE Whether the download was successful

Examples

Run this code
# NOT RUN {
if(Rnightlights:::downloadNlTilesVIIRS("201401", "1"))
  print("download successful")
  
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab