Skip to contents

This function processes LiDAR-based reference data from raster files, converting them to a standardized point data format.

Usage

RefLidar(lidar.dir)

Arguments

lidar.dir

Character string specifying the directory containing LiDAR raster files.

Value

A data frame containing processed point data with columns varying based on the raster type:

PLOT_ID

Unique identifier for each plot

POINT_X

Longitude coordinate

POINT_Y

Latitude coordinate

AGB/CV/SD

Above Ground Biomass, Coefficient of Variation, or Standard Deviation (depending on raster type)

AVG_YEAR

Year of data collection

Details

The function performs the following steps:

  1. Loads raster files from the specified directory

  2. Reprojects rasters to WGS84 if necessary

  3. Converts raster data to points

  4. Prompts user for information to extract PLOT_ID and AVG_YEAR from file names

  5. Formats output based on the specified raster type (AGB, CV, or SD)

Examples

if (FALSE) { # \dontrun{
lidar_data <- RefLidar(lidar.dir = "data/SustainableLandscapeBrazil_v04/SLB_AGBmaps")
} # }