downloadNlTilesVIIRS: Download VIIRS nightlight tile

Description Usage Arguments Value Examples

View source: R/downloadnltiles.R

Description

Download VIIRS nightlight tile

Usage

1
2
3
4
5
6
7
8
downloadNlTilesVIIRS(
  nlPeriod,
  tileNum,
  downloadMethod = pkgOptions("downloadMethod"),
  nlType,
  configName = pkgOptions(paste0("configName_", nlType)),
  extension
)

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 config short name of raster being processed

extension

character the extension of raster being processed

Value

TRUE/FALSE Whether the download was successful

Examples

1
2
3
4
5
## Not run: 
if(Rnightlights:::downloadNlTilesVIIRS("201401", "1"))
  print("download successful")
  
## End(Not run)

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