LVIS Binary

Driver for LVIS Binary files. Read only.

Read Driver Options

These are contained in the READSUPPORTEDOPTIONS module level variable.

Name Use
POINT_FROM an integer. Set to one of the POINT_FROM_* module level constants. Determines which file the coordinates for the point is created from. Defaults to POINT_FROM_LCE
class pylidar.lidarformats.lvisbin.LVISBinFile(fname, mode, controls, userClass)[source]

Reader for LVIS Binary files

close()[source]
static getDriverName()[source]
getHeader()[source]

No header for LVIS files

getHeaderValue(name)[source]

Just extract the one value and return it

getTotalNumberPulses()[source]

Return the total number of pulses

hasSpatialIndex()[source]

LVIS does not have a spatial index

readData(extent=None)[source]

Internal method. Just reads into the self.last* fields

readPointsByPulse(colNames=None)[source]

Return a 2d masked structured array of point that matches the pulses.

readPointsForRange(colNames=None)[source]

Reads the points for the current range. Returns a 1d array.

Returns an empty array if range is outside of the current file.

colNames can be a list of column names to return. By default all columns are returned.

readPulsesForRange(colNames=None)[source]

Reads the pulses for the current range. Returns a 1d array.

Returns an empty array if range is outside of the current file.

colNames can be a list of column names to return. By default all columns are returned.

readReceived()[source]
readTransmitted()[source]
readWaveformInfo()[source]

2d structured masked array containing information about the waveforms.

setPulseRange(pulseRange)[source]

Sets the PulseRange object to use for non spatial reads/writes.

writeData(pulses=None, points=None, transmitted=None, received=None, waveformInfo=None)[source]

Write all the updated data. Pass None for data that do not need to be up It is assumed that each parameter has been read by the reading functions

class pylidar.lidarformats.lvisbin.LVISBinFileInfo(fname)[source]

Class that gets information about a LVIS file and makes it available as fields.

static getDriverName()[source]
pylidar.lidarformats.lvisbin.POINT_FROM_LGWEND = None

How the points are set

pylidar.lidarformats.lvisbin.READSUPPORTEDOPTIONS = ('POINT_FROM',)

Supported read options

pylidar.lidarformats.lvisbin.getFilenames(fname)[source]

Given a filename, determines if it is one of the .lce, .lge, .lgw files and determines the other ones. Returns name of lce, lge and lgw

pylidar.lidarformats.lvisbin.translateChars(input, old, new)[source]

Translate any instances of old into new in string input. Assumes old and new are lowercase. Checks also for uppercase old and replaces with uppercase new.

Use this to replace chars in the file extension while preserving the case.