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(which: Literal[MAJ_NIV1, MAJ_NIV2]) wolfhece.PyPalette.wolfpalette [source]
Get the palette for WALOUS
:return : palette
- wolfhece.pywalous.update_palette_walous(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
- 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