getLevel2AM: Get GEDI Elevation and Height Metrics (GEDI Level2A)

Description Usage Arguments Details Value See Also Examples

View source: R/getLevel2AM.R

Description

This function extracts Elevation and Relative Height (RH) metrics from GEDI Level2A data.

Usage

1
getLevel2AM(level2a)

Arguments

level2a

A GEDI Level2A object (output of readLevel2A function). An S4 object of class "gedi.level2a".

Details

Characteristics. Flag indicating likely invalid waveform (1=valid, 0=invalid).

Value

Returns an S4 object of class data.table-class containing the elevation and relative heights metrics.

See Also

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

Examples

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

# Extracting GEDI Elevation and Height Metrics
level2AM<-getLevel2AM(level2a)
head(level2AM)

close(level2a)

rGEDI documentation built on Jan. 19, 2021, 3:01 p.m.