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.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.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
- 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.
- 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]]
- 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
Modal dialog for mapping WALOUS value to another ones
- class wolfhece.pywalous.DlgMapWalousOCS2Manning(parent, title: str = _('Mapping WALOUS value to ...'))[source]
Bases:
DlgMapWalous2Manning
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
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.