getLevel1BGeo: Get GEDI Full Waveform Geolocations (GEDI Level1B)

Description Usage Arguments Details Value See Also Examples

View source: R/getLevel1BGeo.R

Description

This function extracts Pulse Full Waveform Geolocations from GEDI Level1B data

Usage

1
getLevel1BGeo(level1b, select)

Arguments

level1b

A GEDI Level1B object (output of readLevel1B function). An S4 object of class "gedi.level1b".

select

A character vector specifying the fields to extract from GEDI Level1B data. If NULL, by default it will extract latitude_bin0, latitude_lastbin, longitude_bin0, longitude_lastbin, and shot_number. See details for more options.

Details

Additional fields to be extracted from GEDI level 1B:

Value

Returns an S4 object of class data.table-class containing the GEDI Full Waveform Geolocations

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# specify the path to GEDI level1B data (zip file)
outdir = tempdir()
level1B_fp_zip <- system.file("extdata",
                  "GEDI01_B_2019108080338_O01964_T05337_02_003_01_sub.zip",
                  package="rGEDI")

# Unzipping GEDI level1B data
level1Bpath <- unzip(level1B_fp_zip,exdir = outdir)

# Reading GEDI level1B data (h5 file)
level1b<-readLevel1B(level1Bpath=level1Bpath)

# Extracting GEDI level1B geolocations
level1bGeo<-getLevel1BGeo(level1b,select=c("elevation_bin0", "elevation_lastbin"))
head(level1bGeo)

close(level1b)

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