Learn R Programming

rGEDI (version 0.6.0)

clipLevel4AGeometry: Clip GEDI Level 4A data by polygons

Description

Clip GEDI Level 4A data by polygons

Usage

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

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.

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.