Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Searching and Downloading GEDI L4A Dataset

This tutorial will demonstrate how to search and download Global Ecosystem Dynamics Investigation (GEDI) L4A Footprint Level Aboveground Biomass Density (AGBD)Dubayah et al. (2022) dataset. GEDI L4A dataset is available for the period starting 2019-04-17 and covers latitudes of 52 North to 52 South. GEDI L4A data files are natively in HDF5 format, and each file represents one International Space Station (ISS) orbit.

In this tutorial, we will use earthaccess Python module to search for GEDI L4A files or granules for time and area of interest. The earthaccess module uses NASA’s Earthdata Common Metadata Repository (CMR) Application Programming Interface (API). The CMR catalogs metadata records of NASA Earth Science data and make them available for easy programmatic access. Area of interest can be defined using a bounding box (Option 1) or using polygons (Option 2).

Requirements

Additional prerequisites are provided here.

1. Searching with a bounding box

The dataset Digital Object Identifier or DOI for the GEDI 4A dataset is needed for searching the files (or granules). For this tutorial, let’s use a bounding box of Brazil, which extends north to south from 5.24448639569 N to -33.7683777809 S latitude and east to west from 34.7299934555 E to 73.9872354804 W longitude. We will search and download all the files for July, 2020.

The bounding box and time-bound can be used to search for GEDI L4A files using the earthaccess module. We will use pandas dataframe to store the download URLs of each file and their bounding geometries.

Total granules found: 259

Let’s print the details of the first of the files.

Loading...

As we see above, the granules are hosted in the NASA Earthdata Cloud.

The granules object contains metadata about the granules, including the bounding geometry, publication dates, data providers, etc. Now, let’s convert the above granule metadata from json-formatted to geopandas dataframe. Converting to geopandas dataframe will let us generate plots of the granule geometry.

Now, we have stored the granule URLs and their bounding geometries into the geopandas dataframe gdf. The first few rows of the table look like the following.

Loading...

We can now plot the bounding geometries of the granules (shown with green lines in the figure below). The bounding box (of Brazil) is plotted in red color.

Loading...

2. Searching for a polygonal area of interest

If an area of interest is already defined as a polygon, the polygon file in geojson, shapefile or kml formats can be used to find overlapping GEDI L4A files.

For this tutorial, we will use the boundary of a northern state of Brazil, Amapá, to search for the overlapping GEDI files. The boundary polygon is stored in a geojson file called amapa.json (shown in red polygon in the figure below).

Loading...

In this example, we will use earthaccess python module to search for all the GEDI L4A overlapping the above polygon.

Total granules found: 846

Now, let’s convert the above granule metadata from json-formatted to geopandas dataframe. Converting to geopandas dataframe will let us generate plots of the granule geometry.

We have stored the granule bounding geometries into the geopandas dataframe gdf. The first few rows of the gdf dataframe look like the following.

Loading...

We can now plot the bounding geometries of the granules (shown with green lines in the figure below) using geopandas. The Amapá state is plotted in red color.

Loading...

3. Downloading the files

We recommend using earthaccess to download GEDI data granules from the NASA Earthdata. You will first need to authenticate your Earthdata Login (EDL) information using the earthaccess python library as follows:

The following will download the first two files. If you want to download all the granules (846 total), please uncomment the third line below.

Loading...
Loading...
Loading...
['full_orbits/GEDI04_A_2019112075017_O02026_02_T00059_02_002_02_V002.h5', 'full_orbits/GEDI04_A_2019112075017_O02026_02_T00059_02_002_02_V002.h5.sha256', 'full_orbits/GEDI04_A_2019112183906_O02033_03_T04182_02_002_02_V002.h5', 'full_orbits/GEDI04_A_2019112183906_O02033_03_T04182_02_002_02_V002.h5.sha256']
References
  1. Dubayah, R. O., Armston, J., Kellner, J. R., Duncanson, L., Healey, S. P., Patterson, P. L., Hancock, S., Tang, H., Bruening, J., Hofton, M. A., Blair, J. B., & Luthcke, S. B. (2022). GEDI L4A Footprint Level Aboveground Biomass Density, Version 2.1. 10.3334/ORNLDAAC/2056