Main Content

hasNearIRData

Check if LAS or LAZ file has near IR data

Since R2022a

Description

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

example

Examples

collapse all

Create a lasFileReader object for a LAZ file. Then, use the hasNearIRData function to check if the LAZ file contains near IR 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 for near IR data in the LAZ file by using the hasNearIRData function.

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

Input Arguments

collapse all

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

Version History

Introduced in R2022a