Function lupnt::DownloadLolaDem

Function Documentation

std::filesystem::path lupnt::DownloadLolaDem(const std::string &site_id)

Download (and cache) a site’s 5 m/pixel surface DEM GeoTIFF from NASA PGDA.

The file is cached at GetDataPath()/dem/LOLA_5mpp/<site>/<site>_final_adj_5mpp_surf.tif; if that already exists it is returned without any network access. Downloads use the same curl -fsSL idiom as the other lupnt loaders (sp3_loader, eop, spice) and are disabled when the environment variable LUPNT_SKIP_DEM_DOWNLOAD is set truthy (in which case a missing cache throws).

Parameters:

site_id – PGDA site folder id (e.g. “Site01”).

Returns:

Local filesystem path to the cached GeoTIFF.