readLevel1B: Read GEDI Level1B data (Geolocated Waveforms)

View source: R/readLevel1B.R

readLevel1BR Documentation

Read GEDI Level1B data (Geolocated Waveforms)

Description

This function reads GEDI level1B products: geolocated Waveforms

Usage

readLevel1B(level1Bpath)

Arguments

level1Bpath

Local file path or Earthdata Cloud URL pointing to a GEDI Level 1B HDF5 granule.

Value

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

See Also

hdf5r::H5File in the hdf5r package and https://www.earthdata.nasa.gov/data/catalog/lpcloud-gedi01-b-002

Examples

# 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 Nov. 10, 2026, 5:07 p.m.