Learn R Programming

rGEDI (version 0.6.0)

readLevel2A: Read GEDI Level2A data (Basic Full Waveform derived Metrics)

Description

This function reads GEDI level2A products: ground elevation, canopy top height, and relative heights (RH).

Usage

readLevel2A(level2Apath)

Value

Returns an S4 object of class gedi.level2a containing GEDI level2A data.

Arguments

level2Apath

Local file path or Earthdata Cloud URL pointing to a GEDI Level 2A HDF5 granule.

See Also

Examples

Run this code
# Specifying the path to GEDI level2A data (zip file)
outdir = tempdir()
level2A_fp_zip <- system.file("extdata",
                  "GEDI02_A_2019108080338_O01964_T05337_02_001_01_sub.zip",
                  package="rGEDI")

# Unzipping GEDI level2A data
level2Apath <- unzip(level2A_fp_zip,exdir = outdir)

# Reading GEDI level2A data (h5 file)
level2a<-readLevel2A(level2Apath=level2Apath)

close(level2a)

Run the code above in your browser using DataLab