Learn R Programming

rGEDI (version 0.1.11)

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)

Arguments

level2Apath

File path pointing to GEDI level2A data. Data in HDF5 Hierarchical Data Format (.h5).

Value

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

See Also

https://lpdaac.usgs.gov/products/gedi02_av001/

Examples

Run this code
# NOT RUN {
# 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