clipLevel4AGeometry: Clip GEDI Level 4A data by polygons

View source: R/level4A.R

clipLevel4AGeometryR Documentation

Clip GEDI Level 4A data by polygons

Description

Clip GEDI Level 4A data by polygons

Usage

clipLevel4AGeometry(level4A, polygon, split_by = NULL, output = "")

Arguments

level4A

A gedi.level4a object returned by readLevel4A() or a table returned by getLevel4A().

polygon

An sf, sfc, or SpatVector polygon object.

split_by

Optional polygon attribute. For HDF5 input, one clipped file is returned per unique value. For table input, the value is copied to poly_id.

output

Optional output HDF5 path when level4A is a gedi.level4a object. A temporary file is used by default.

Value

A clipped gedi.level4a object (or a named list when split_by is used) for HDF5 input, or a data.table::data.table for table input.


rGEDI documentation built on Nov. 10, 2026, 5:07 p.m.