When downloading granula data from the Earthdata search collection "Gridded Population of the World, Version 3 (GPWv3): Population Density Grid" it outputs in a format similar to "_region_Global_file_gpwv3_data_pdens_type_ascii_level-scope_continent_resolut_half_year_00" written in html code, which I'm unsure on how to analyze using R or QGIS. Is there a guide for R or any other free-to-use software on how to read this output and, for this example, extract the population density for any given lat/lon coordinates?
I originally approached it using this guide for R "https://nasa-openscapes.github.io/earthdata-cloud-cookbook/how-tos/find-data/find-r.html" in hopes for a different output, but it errors on the "granule_urls <- edl_extract_urls(granules)" step (see below). Using the Earthdata download application did yield a different output on read, however I was similarly unable to analyze it. OS used was Windows 11 Home 24H2 and R version 4.5.1. I am a beginner with Earthdata in general, so apologies for any glaring mistakes or missing forum post clarifications.
[R error]
Error in `purrr::map_chr()`:
ℹ In index: 1.
Caused by error:
! Result must be length 1, not 0.
Problems With Analyzing GPWv3 Data Download
-
lefterispoz
- Posts: 1
- Joined: Mon Nov 03, 2025 10:15 am America/New_York