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

Description Usage Arguments Value See Also Examples

View source: R/readLevel2A.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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)

rGEDI documentation built on Jan. 21, 2021, 1:06 a.m.