Main Content

hasWaveformData

Check if LAS or LAZ file has waveform data

Since R2022a

Description

flag = hasWaveformData(lasReader) returns a logical 1 (true) if the specified LAS or LAZ file lasReader contains waveform data. Otherwise, it returns a logical 0 (false).

example

Examples

collapse all

Create a lasFileReader object for a LAZ file. Then, use the hasWaveformData function to check the LAZ file for waveform data to read.

Create a lasFileReader object to access the LAZ file data.

path = fullfile(toolboxdir("lidar"),"lidardata", ...
    "las","aerialLidarData.laz");
lasReader = lasFileReader(path);

Check waveform data in the LAZ file by using the hasWaveformData function.

flag = hasWaveformData(lasReader);
disp(flag)
   0

Input Arguments

collapse all

LAS or LAZ file reader, specified as a lasFileReader object.

Version History

Introduced in R2022a