Learn R Programming

Rnightlights (version 0.1.2)

downloadNlTilesVIIRS: Download VIIRS nightlight tile

Description

Download VIIRS nightlight tile

Usage

downloadNlTilesVIIRS(nlYearMonth, tileNum,
  downloadMethod = pkgOptions("downloadMethod"))

Arguments

nlYearMonth

the year in "YYYYMM" format e.g. "201204"

tileNum

the index of the tile as given by getNlTiles("VIIRS")

downloadMethod

The method to use for download.

Value

TRUE/FALSE Whether the download was successful

Examples

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

Run the code above in your browser using DataLab