Skip to contents

This function allows you to download night lightdata from the The Earth Observation Group (EOG).

Examples


get_nightlight_data(2024, 3, "v10", ".", timeout = 1200)
#> Scraping URL: https://eogdata.mines.edu/nighttime_light/monthly_notile/v10/2024/202403/vcmslcfg/ 
#> Downloading latest file from URL: https://eogdata.mines.edu/nighttime_light/monthly_notile/v10/2024/202403/vcmslcfg/SVDNB_npp_20240301-20240331_global_vcmslcfg_v10_c202404121500.avg_rade9h.tif https://eogdata.mines.edu/nighttime_light/monthly_notile/v10/2024/202403/vcmslcfg/SVDNB_npp_20240301-20240331_global_vcmslcfg_v10_c202404121500.avg_rade9h.tif 
#> Error during web scraping or downloading: 'url' must be a length-one character vector 
#> NULL