wolfhece.Lidar2002

Author: HECE - University of Liege, Pierre Archambeau Date: 2024

Copyright (c) 2024 University of Liege. All rights reserved.

This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.

Module Contents

class wolfhece.Lidar2002.Lidar2002(fname: str = None, mold: wolfhece.wolf_array._base.WolfArrayModel = None, masknull: bool = True, crop: list[list[float], list[float]] = None, whichtype=WOLF_ARRAY_FULL_SINGLE, preload: bool = True, create: bool = False, mapviewer=None, nullvalue: float = 0.0, srcheader: wolfhece.wolf_array._header_wolf.header_wolf = None, idx: str = '', plotted: bool = False, need_for_wx: bool = False, mask_source: numpy.ndarray = None, np_source: numpy.ndarray = None)[source]

Bases: wolfhece.wolf_array.WolfArray

Inheritance diagram of wolfhece.Lidar2002.Lidar2002

GUI-enabled WolfArray with OpenGL rendering and wxPython integration.

Inherits all data operations from WolfArrayModel and adds:

  • OpenGL 2D rendering via display-lists (Cython wolfogl) or GLSL shaders (WolfArrayShader2D).

  • LOD tiling: the grid is divided into tiles whose resolution adapts to the current zoom level.

  • Palette / colormap management with automatic isopop adjustment.

  • Interactive wx dialogs for crop, band selection, volume estimation, file saving, and error reporting.

  • Ops_Array integration for the GUI operations panel.

  • 3D preview via WolfArrayPlotShader.

test_bounds(bounds)[source]
class wolfhece.Lidar2002.ASC_file(fname=None, mold=None, masknull=True)[source]

Bases: Lidar2002

Inheritance diagram of wolfhece.Lidar2002.ASC_file

GUI-enabled WolfArray with OpenGL rendering and wxPython integration.

Inherits all data operations from WolfArrayModel and adds:

  • OpenGL 2D rendering via display-lists (Cython wolfogl) or GLSL shaders (WolfArrayShader2D).

  • LOD tiling: the grid is divided into tiles whose resolution adapts to the current zoom level.

  • Palette / colormap management with automatic isopop adjustment.

  • Interactive wx dialogs for crop, band selection, volume estimation, file saving, and error reporting.

  • Ops_Array integration for the GUI operations panel.

  • 3D preview via WolfArrayPlotShader.

origx[source]
origy[source]
nbx = 2000[source]
nby = 2000[source]
dx = 1.0[source]
dy = 1.0[source]
filename = None[source]
read_data_XYZ()[source]
get_xyz(which='all')[source]

Return an array of xyz coordinates and values

Parameters:

which – which values to export: 'all' includes all unmasked cells

Returns:

Nx3 array of [x, y, z] coordinates for all unmasked cells

Return type:

numpy.ndarray

class wolfhece.Lidar2002.BSQ_file(fname=None, mold=None, masknull=True)[source]

Bases: Lidar2002

Inheritance diagram of wolfhece.Lidar2002.BSQ_file

GUI-enabled WolfArray with OpenGL rendering and wxPython integration.

Inherits all data operations from WolfArrayModel and adds:

  • OpenGL 2D rendering via display-lists (Cython wolfogl) or GLSL shaders (WolfArrayShader2D).

  • LOD tiling: the grid is divided into tiles whose resolution adapts to the current zoom level.

  • Palette / colormap management with automatic isopop adjustment.

  • Interactive wx dialogs for crop, band selection, volume estimation, file saving, and error reporting.

  • Ops_Array integration for the GUI operations panel.

  • 3D preview via WolfArrayPlotShader.

origx[source]
origy[source]
nbx = 2000[source]
nby = 2000[source]
dx = 1.0[source]
dy = 1.0[source]
filename = None[source]
read_data()[source]

Read binary array data from the current file, with optional cropping.

wolfhece.Lidar2002.lidar_scandir(mydir, bounds)[source]
wolfhece.Lidar2002.create_laz(mydirs, bounds, fnout='')[source]
wolfhece.Lidar2002.find_points(xyz, bounds)[source]
wolfhece.Lidar2002.create_wolfarray(myxyz, fn_out='', bounds=None)[source]