Satellite Nightlight Data Extraction

Extracts raster and zonal statistics from satellite nightlight rasters downloaded from the United States National Oceanic and Atmospheric Administration (<>) free data repositories. Both the DMSP-OLS annual and SNPP-VIIRS monthly nightlight raster data are supported. Satellite nightlight raster tiles are downloaded and cropped to the country boundaries using shapefiles from the GADM database of Global Administrative Areas (<>). Zonal statistics are then calculated at the lowest administrative boundary for the selected country and cached locally for future retrieval. Finally, a simple data explorer/browser is included that allows one to visualize the cached data e.g. graphing, mapping and clustering regional data.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.4 by Christopher Njuguna, 9 months ago

Report a bug at

Browse source code at

Authors: Christopher Njuguna [aut, cre, cph]

Documentation:   PDF Manual  

GPL-3 license

Imports cleangeo, compiler, curl, data.table, doSNOW, dplyr, ff, ffbase, foreach, lubridate, methods, raster, readr, reshape2, rgdal, rgeos, R.utils, rvest, rworldmap, settings, snow, sp, stats, stringr, utils, xml2

Suggests dendextend, DT, gdalUtils, ggdendro, ggplot2, leaflet, plotly, RColorBrewer, shiny, shinydashboard, testthat

System requirements: aria2, curl, gdal, wget

See at CRAN