Skip to contents

Find data

ntl_sources()
Supported nighttime lights products
ntl_tiles()
Black Marble tiles covering an area of interest
ntl_available()
Check which periods and tiles are available on NASA LAADS

Get data

ntl_fetch()
Download Black Marble tiles from NASA LAADS
ntl_files()
Index nighttime lights files you already have
ntl_cache_dir() ntl_cache_info() ntl_cache_clear() ntl_token()
Cache directory, cache management and credentials

Read and mask

ntl_read()
Read one period of a manifest as a raster
ntl_read_bm()
Read a Black Marble HDF5 tile
ntl_mask()
Mask low-quality, under-observed and gas-flare pixels

Extract

ntl_extract()
Extract nighttime lights for many periods
ntl_aggregate()
Zonal statistics with coverage diagnostics

Build panels

ntl_splice()
Splice two sensors into one consistent series
ntl_splice_report()
Diagnostics of a splice
ntl_panel()
Build a balanced, analysis-ready panel
ntl_gapfill()
Handle missing and low-coverage observations explicitly

Design variables

ntl_exposure()
Distance-ring treatment exposure
ntl_crosswalk()
Crosswalk between two boundary vintages
ntl_apply_crosswalk()
Apply a boundary crosswalk to tabular data

Example data

ntl_example()
Synthetic example data