pylas.header module¶
LasHeader¶
-
class
pylas.header.LasHeader(*, version: Union[pylas.header.Version, str, None] = None, point_format: Union[pylas.point.format.PointFormat, int, None] = None)[source]¶ Bases:
objectContains the information from the header of as LAS file with ‘implementation’ field left out and ‘users’ field stored in more ergonomic classes.
This header also contains the VLRs
Examples
Creating a default header:
>>> header = LasHeader() >>> header <LasHeader(1.2, <PointFormat(3, 0 bytes of extra dims)>)>
Creating a header with the wanted version and point format:
>>> header = LasHeader(version=Version(1, 4), point_format=PointFormat(6)) >>> header <LasHeader(1.4, <PointFormat(6, 0 bytes of extra dims)>)>
>>> header = LasHeader(version="1.4", point_format=6) >>> header <LasHeader(1.4, <PointFormat(6, 0 bytes of extra dims)>)>
-
DEFAULT_VERSION= Version(major=1, minor=2)¶ The default version used when None is given to init
-
DEFAULT_POINT_FORMAT= <PointFormat(3, 0 bytes of extra dims)>¶ The default point format Used when None is given to init
-
file_source_id= None¶ File source id
-
uuid= None¶ Project ID Initialized to null UUID
-
system_identifier= None¶ System identifier Initialized to ‘OTHER’
-
generating_software= None¶ The software which generated the file Initialized to ‘pylas’
-
creation_date= None¶ Day the file was created, initialized to date.today()
-
point_count= None¶ The number of points in the file
-
scales= None¶ The numbers used to scale the x,y,z coordinates
-
offsets= None¶ The numbers used to offset the x,y,z coordinates
-
number_of_points_by_return= None¶ Number of points by return for las <= 1.2 only the first 5 elements matters
-
vlrs= None¶ The VLRS
-
extra_header_bytes= None¶ Extra bytes between end of header and first vlrs
-
extra_vlr_bytes= None¶ Extra bytes between end of vlr end first point
-
start_of_waveform_data_packet_record= None¶ Las >= 1.3
-
start_of_first_evlr= None¶ Las >= 1.4 Offset to the first evlr in the file
-
number_of_evlrs= None¶ The number of evlrs in the file
-
point_format¶ The point format
-
version¶ The version
-
x_scale¶
-
y_scale¶
-
z_scale¶
-
x_offset¶
-
y_offset¶
-
z_offset¶
-
x_max¶
-
y_max¶
-
z_max¶
-
x_min¶
-
y_min¶
-
z_min¶
-