LVIS HDF5

Driver for LVIS HDF5 files. Read only.

Read Driver Options

These are contained in the READSUPPORTEDOPTIONS module level variable.

Name Use
POINT_FROM A 3 element tuple defining which fields to create a fake point from (x,y,z). Default is (‘LON0’, ‘LAT0’, ‘Z0’)
pylidar.lidarformats.lvishdf5.CLASSIFICATION_NAME = 'CLASSIFICATION'

LVIS Files don’t have a CLASSIFICATION column so we have to create a blank one for SPDV4

class pylidar.lidarformats.lvishdf5.LVISHDF5File(fname, mode, controls, userClass)[source]

Reader for LVIS HDF5 files

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

Get the header as a dictionary

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

static readHeaderAsDict(fileHandle)[source]

Internal method to gather info from file and build into a dictionary.

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.

readRange(colNames=None)[source]

Internal method. Returns the requested column(s) as a structured array. Since both points and pulses come from the same place this function is called to read both.

Assumes colName is not None

readReceived()[source]

Return the 3d masked integer array of received for each of the current pulses. First axis is the waveform bin. Second axis is waveform number and last is pulse.

readTransmitted()[source]

Return the 3d masked integer array of transmitted for each of the current pulses. First axis is the waveform bin. Second axis is waveform number and last is pulse.

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.lvishdf5.LVISHDF5FileInfo(fname)[source]

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

static getDriverName()[source]
pylidar.lidarformats.lvishdf5.READSUPPORTEDOPTIONS = ('POINT_FROM',)

Supported read options