Skip to content

Module pytools4dart.tools.DART2LAS.DART2LAS

Created on Aug 25, 2017

@author: Tiangang Yin @author: Florian de Boissieu: contribution to format specification and extra bytes integration. @author: Grégoire Couderc : contribution to format specification.

Variables

evlr_wave_format
evlr_wave_header_length
hearder_format
hearder_length
speedOfLightPerNS
to8bit_format
waveform_parameter_format
waveform_parameter_length

Functions

DP2LAS

def DP2LAS(
    inputFile,
    outputFile,
    lasFormat=6
)
Converts DetectedPoints.txt to a LAS file
Parameters
----------
inputFile: str
    path to DART output file DetectedPoints.txt
outputFile: str
    path to the LAS file
lasFormat: int
    Either 1 or 6. LAS Format 1 has a maximum of 7 returns by pulse, while LAS Format 6 has a maximum of 15 returns.
    See LAS 1.4 specifications for details.

Returns
-------

Classes

DART2LAS

class DART2LAS(
    type_out=4,
    receiver_gain=None,
    wave_noise_threshold=2,
    wave_encoding_bytes=2,
    keep_waveform=False,
    las_format=None,
    las_version=1.4,
    scale=0.001,
    minimum_intensity=1,
    extra_bytes=True
)

Class to convert DART full-waveform lidar simulation binary files to LAS.

Methods

readDARTBinaryFileAndConvert2LAS
def readDARTBinaryFileAndConvert2LAS(
    self,
    dartFileName,
    lasFileName
)
Convert a DART binary file to LAS

Parameters
----------
dartFileName: str
lasFileName: str

Returns
-------
(float, float)
digitizer_offset and digitizer_gain