This is a link to my data: https://drive.google.com/file/d/1Bof2AqB-m2vbBPSH7WZntlnTrdr-NliJ/view?usp=share_link
By default, the reduce function in the PointCloudRasterizers package, reduces a dataset of pointcloud based on z (height/depth)
ds = LazIO.open(file)
cellsizes = [0.01, 0.01]
pci = index(ds, cellsizes; bbox=GeoInterface.extent(ds), crs=GeoFormatTypes.EPSG(4326))
raster = reduce(pci, reducer=median)
GeoArrays.write!("outputFile.tif", raster) # Save raster to tiff
This data contains RGB values
df = DataFrame(ds)[:, ["geometry", "classification", "r", "g", "b"]]
first(df,5)
How can I apply the reduce function over other types of data (e.g., b values)? My aim is to convert laz files into raster files for every available type of values.