# NOT RUN {
#download VIIRS tiles for "KEN" which are tiles 2 and 5 for the specified
#time periods
# }
# NOT RUN {
Rnightlights:::downloadNlTiles("VIIRS.M", "201401", c(2, 5))
# }
# NOT RUN {
#same as above but getting the tileList automatically
# }
# NOT RUN {
Rnightlights:::downloadNlTiles(nlType="VIIRS.M",
nlPeriod="201401",
tileList=Rnightlights:::getCtryTileList(ctryCodes="KEN",
nlType="VIIRS.M")
)
# }
# NOT RUN {
#returns TRUE if the download was successful or tile is cached locally
# }
Run the code above in your browser using DataLab