Problems With Analyzing GPWv3 Data Download

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
lefterispoz
Posts: 1
Joined: Mon Nov 03, 2025 10:15 am America/New_York
Answers: 0

Problems With Analyzing GPWv3 Data Download

by lefterispoz » Tue Nov 04, 2025 7:48 am America/New_York

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.

Filters:

jfmartinez4
Posts: 4
Joined: Fri Jan 09, 2026 11:52 am America/New_York
Answers: 0

Re: Problems With Analyzing GPWv3 Data Download

by jfmartinez4 » Fri Jan 09, 2026 11:57 am America/New_York

Hello,
The Gridded Population of the World, Version 3 (GPWv3): Population Density Grid found at https://www.earthdata.nasa.gov/data/catalog/sedac-ciesin-sedac-gpwv3-popdens-3.0 appears to be zip files. it seems that you need to add ".zip" extension at the end of the filename in order to decompress the downloaded file.

Once unzipped, you will find .asc files, which are rasters. For R, you can use the `terra` or `rasters` package libraries to read .asc file.

Post Reply