An R downloader that allows you to download GHSL rasters without leaving the comfort of RStudio. The downloads are tile-based, meaning you won't be downloading the rasters as a whole (global coverage) but only where you need! Through this downloader you can have direct access to GHSL's HTTP directory server and explore the available products in different epochs and resolutions, all requests are cached to not get rate limited by GHSL. More information about GHSL datasets and its products here (recommended).
The package is in very early development and is not available on CRAN (yet).
The package can currently be installed with
remotes::install_github("tuyenhn/ghslDL")
Load the package with
library(ghslDL)
Documentation and examples are included with each function, this is the recommended way to understand the package and its functions. But in summary:
ghslDL::ghsl_dl(dataset, point)
runs the downloader, list out available products for dataset and automatically convert point into the correct tile to download.ghslDL::list_dataset()
list out available datasets currently being supported by the package (more to come!). You should run this to see what's avaialble before running the downloader.ghslDL::list_products(dataset)
list out available products in the chosen dataset. Automatically runs with the downloader.