5.0

5.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 14.13 KB File ID: #23136

read_las_header

by Chris Parrish

 

26 Feb 2009 (Updated 02 Sep 2011)

Reads in and displays the header information from a lidar data file in LAS format

| Watch this File

File Information
Description

The function read_las_header reads and displays the header information from a lidar data file in the American Society for Photogrammetry & Remote Sensing (ASPRS) LAS format, as specified in the following document: "LAS Specification Version 1.2" ASPRS, April 29, 2008. If properly populated, the LAS header contains such information as the software used to generate the LAS file, the year and day the file was created, the sensor or process used to generate the data, the number of points per return (e.g., first, second, third pulse, etc.), the total number of points in the file, the min and max X,Y,Z coordinates, and other info needed to correctly read lidar points from the file. The function is backwards-compatible, with respect to the LAS version (i.e., header information from lidar files in LAS 1.0 and 1.1 formats should display fine).

The accompanying file, coordinate_sys.mat, is needed to display coordinate system information.

Input:
lasFilename: Path and filename of LAS file
         
Example of calling this function:
headerInfo = read_las_header('C:\my_lidar_file.las');
                    
Output:
lasHeaderInfo: Up to 40x2 cell array containing all the info read in from the LAS file header. If coordinate system info is missing, then lasHeaderInfo will be a 36x2 cell array.
                    
Chris Parrish

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
17 Feb 2011 Sven

just what I needed, thanks!

Please login to add a comment or rating.
Updates
02 Sep 2011

Fixed bug that caused Version Major, Version Minor, and Point Data Format IDs to not be read in correctly. Also now displays vertical datum info and units, if populated in GeoKeyDirectoryTag.

Tag Activity for this File
Tag Applied By Date/Time
lidar Chris Parrish 27 Feb 2009 10:23:55
las Chris Parrish 27 Feb 2009 10:23:55
point cloud Chris Parrish 27 Feb 2009 10:23:55
header Chris Parrish 27 Feb 2009 10:23:55
data import Chris Parrish 27 Feb 2009 10:23:55
laser scanner Chris Parrish 27 Feb 2009 10:23:55
metadata Chris Parrish 27 Feb 2009 10:23:55
las soumya chandra 26 Apr 2011 06:09:33

Contact us at files@mathworks.com