src.processor

src.processor.solweig_algorithm_qgisless_cupy

/***********************************************************************
ProcessingUMEP

A QGIS plugin

UMEP for processing toolbox Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/

begin : 2020-04-02 copyright : (C) 2020 by Fredrik Lindberg email : fredrikl@gvc.gu.se

Modifications by:

Jessica Monahan 2025 Modified so code can run without QGIS, with CuPy

***********************************************************************/

/***********************************************************************
  • This program is free software; you can redistribute it and/or modify *

  • it under the terms of the GNU General Public License as published by *

  • the Free Software Foundation; either version 2 of the License, or *

  • (at your option) any later version. *

***********************************************************************/

class src.processor.solweig_algorithm_qgisless_cupy.SOLWEIGAlgorithm(INPUT_DSM, INPUT_SVF, INPUT_CDSM, INPUT_HEIGHT, INPUT_ASPECT, UTC, OUTPUT_DIR, INPUT_MET, INPUT_DTM=None, INPUT_EXTRAHEIGHT=6, INPUT_MULT_DSMS=None, INPUT_LC=None, INPUT_DEM=None, INPUT_ANISO=None, CONIFER_TREES=False, INPUT_THEIGHT=25, INPUT_TDSM=None, TRANS_VEG=15, LEAF_START=97, LEAF_END=300, USE_LC_BUILD=True, SAVE_BUILD=False, ALBEDO_WALLS=0.2, ALBEDO_GROUND=0.15, EMIS_WALLS=0.9, EMIS_GROUND=0.95, ABS_S=0.7, ABS_L=0.95, POSTURE=0, ONLYGLOBAL=True, OUTPUT_TMRT=True, OUTPUT_LUP=True, OUTPUT_KUP=True, OUTPUT_KDOWN=True, OUTPUT_LDOWN=True, OUTPUT_SH=True, OUTPUT_TREEPLANTER=False, CYL=True, version='dsms')[source]

Bases: object

A class to process the SOLWEIG algorithm inputs.

Parameters:
  • INPUT_DSM – Digital Surface Model (DSM) input file.

  • INPUT_SVF – Sky View Factor (SVF) directory.

  • INPUT_CDSM – Canopy DSM input file.

  • INPUT_TDSM – Trunk zone DSM input file.

  • INPUT_HEIGHT

  • INPUT_ASPECT – Wall aspect input file.

  • TRANS_VEG – Vegetation transmissivity value or input file.

  • LEAF_START – Start of the leaf-on period (date or DOY).

  • LEAF_END – End of the leaf-on period (date or DOY).

  • CONIFER_TREES – Boolean: if true trees are seen af coniferous

  • INPUT_THEIGHT – Trunk height (percentage, if no trunk zone DSM)

  • INPUT_LC – Land cover classification input file.

  • USE_LC_BUILD – Boolean indicating whether to use land cover for building footprints.

  • INPUT_DEM – Digital Elevation Model (DEM) input file.

  • SAVE_BUILD – Boolean indicating whether to save the processed building footprint.

  • INPUT_ANISO – Anisotropic input data or parameter.

  • ALBEDO_WALLS – ETC.

  • NEW

  • INPUT_EXTRAHEIGHT – Highest possible height of the z-component of the solar vector, dependent on max solar height for location.

  • INPUT_DTM – Digital Terrain Model (DTM) input file.

  • MULT_DSMS – For 3D SOLWEIG: input of layered DSM file.

processAlgorithm()[source]

Function to process the SOLWEIG algorithm

processAlgorithm_3d()[source]

Function to process the SOLWEIG algorithm in 3D