readLevel1B: Read GEDI Level1B data (Geolocated Waveforms)

Description Usage Arguments Value See Also Examples

View source: R/readLevel1B.R

Description

This function reads GEDI level1B products: geolocated Waveforms

Usage

1
readLevel1B(level1Bpath)

Arguments

level1Bpath

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

Value

Returns an S4 object of class "gedi.level1b" containing GEDI level1B data.

See Also

hdf5r::H5File in the hdf5r package and https://lpdaac.usgs.gov/products/gedi01_bv001/

Examples

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

close(level1b)

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