wolfhece.pywalous

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

wolfhece.pywalous.WALOUS_UTS_MAJ_NIV1[source]
wolfhece.pywalous.WALOUS_UTS_MAJ_NIV2[source]
wolfhece.pywalous.WALOUS_UTS_COLORMAP_MAJ_NIV1[source]
wolfhece.pywalous.WALOUS_UTS_COLORMAP_MAJ_NIV2[source]
wolfhece.pywalous.WALOUS_OCS[source]
wolfhece.pywalous.WALOUS_OCS_COLORMAP[source]
wolfhece.pywalous.HYDROLOGY_LANDUSE_FR[source]
wolfhece.pywalous.HYDROLOGY_LANDUSE_EN[source]
wolfhece.pywalous.MAPPING_WALOUS_TO_HYDROLOGY[source]
wolfhece.pywalous.get_palette_walous_uts(which: Literal['MAJ_NIV1', 'MAJ_NIV2']) wolfhece.PyPalette.wolfpalette[source]

Get the palette for WALOUS

:return : palette

wolfhece.pywalous.get_palette_walous_ocs() wolfhece.PyPalette.wolfpalette[source]

Get the palette for WALOUS OCS

:return : palette

wolfhece.pywalous.update_palette_walous_uts(which: Literal['MAJ_NIV1', 'MAJ_NIV2'], pal: wolfhece.PyPalette.wolfpalette)[source]

Update the palette for WALOUS MAJ_NIV1

:param pal : palette to update :return : updated palette

wolfhece.pywalous.update_palette_walous_ocs(pal: wolfhece.PyPalette.wolfpalette)[source]

Update the palette for WALOUS OCS

:param pal : palette to update :return : updated palette

wolfhece.pywalous.WALOUS2MANNING_MAJ_NIV1[source]
wolfhece.pywalous.WALOUS2MANNING_MAJ_NIV2[source]
wolfhece.pywalous.WALOUSOCS2MANNING[source]

Hydrology classification for Land Use in Wallonia: 1 = forêt 2 = prairie 3 = culture 4 = pavés/urbain 5 = rivière 6 = plan d’eau

wolfhece.pywalous.WALOUS2HYDROLOGY[source]
class wolfhece.pywalous.Walous_data(dir_data: str = '', fn: str = 'WAL_UTS__2018_L72', bounds: list[float, float, float, float] | list[list[float, float], list[float, float]] = None)[source]

La donnée Walous est liée à l’utilisation des sols en Wallonie

source : https://geoportail.wallonie.be/walous

Cette classe permet la manipulation de la donnée dans le cadre du projet MODREC et plus spécifiquement la distribution d’un coefficient de frottement sur base de la donnée Walous.

_dir = ''[source]
_fn = 'WAL_UTS__2018_L72'[source]
_gdf = None[source]
read(force: bool = False, bounds: list[float, float, float, float] | list[list[float, float], list[float, float]] = None)[source]

Read data from file

:param force : force to read even read was done before :param bounds : [xmin, ymin, xmax, ymax] or [[xmin, xmax], [ymin, ymax]]

write(fnout: str = 'out_clip.shp')[source]

Write _gdf to file

:param fnout : output filename

to_file(fn: str = 'out_clip.shp')[source]

Alias to write

:param fn : output filename

rasterize(bounds: list[float, float, float, float] | list[list[float, float], list[float, float]], layer: Literal['MAJ_NIV1', 'MAJ_NIV2'] = 'MAJ_NIV1', fn_out: str = 'out.tif', pixel_size: float = 0.5, NoData_value: float = -99999.0, num_type=gdal.GDT_Float32)[source]

Rasterization of polygon data to tif

:param bounds : [xmin, ymin, xmax, ymax] or [[xmin, xmax], [ymin, ymax]] :param layer : layer to rasterize :param fn_out : output filename :param pixel_size : pixel size :param NoData_value : NoData value :param num_type : type of the number

class wolfhece.pywalous.DlgMapWalous2Manning(parent, title: str = _('Mapping WALOUS value to ...'), which: str = 'MAJ_NIV1')[source]

Bases: wx.Dialog

Inheritance diagram of wolfhece.pywalous.DlgMapWalous2Manning

Modal dialog for mapping WALOUS value to another ones

_table[source]
on_ok(event)[source]
on_cancel(event)[source]
get_mapping() dict[source]
class wolfhece.pywalous.DlgMapWalousOCS2Manning(parent, title: str = _('Mapping WALOUS value to ...'))[source]

Bases: DlgMapWalous2Manning

Inheritance diagram of wolfhece.pywalous.DlgMapWalousOCS2Manning

Modal dialog for mapping WALOUS value to another ones

This dialog is used to map WALOUS values to hydrology values. It inherits from DlgMapWalous2Manning and overrides the initialization to set the correct column labels and values.

class wolfhece.pywalous.DlgMapWalous2Hydrology(parent, title: str = _('Mapping WALOUS value to ...'))[source]

Bases: DlgMapWalous2Manning

Inheritance diagram of wolfhece.pywalous.DlgMapWalous2Hydrology

Modal dialog for mapping WALOUS value to another ones

This dialog is used to map WALOUS values to hydrology values. It inherits from DlgMapWalous2Manning and overrides the initialization to set the correct column labels and values.

class wolfhece.pywalous.Walous_UTS_Legend(*args, **kw)[source]

Bases: wx.Dialog

Inheritance diagram of wolfhece.pywalous.Walous_UTS_Legend

Show the legend of WALOUS

_text_v1[source]
_text_v2[source]
_legend_v1[source]
_legend_v2[source]
close()[source]
class wolfhece.pywalous.Walous_OCS_Legend(*args, **kw)[source]

Bases: wx.Dialog

Inheritance diagram of wolfhece.pywalous.Walous_OCS_Legend

Show the legend of WALOUS OCS

_text[source]
_legend[source]
close()[source]