UMEP-dev / UMEP

Urban Multi-scale Environmental Predictor
https://umep-docs.readthedocs.io/
62 stars 15 forks source link

SOLWEIG error TDSM filepath not defined #255

Closed cdbell01 closed 3 years ago

cdbell01 commented 3 years ago

Describe the bug I'm encountering an error when running Solweig with a TDSM I've created myself. If I uncheck "Trunk zone DSM exist" and use the built-in TDSM generator in Solweig - Solweig runs great with the other inputs. The output seems correct. Note, I did not use the UMEP Tree Generator to create the TDSM, I used the raster calculator.

To Reproduce Steps to reproduce the behavior:

  1. Open the Solweig processor menu and fill in all inputs
  2. Check "Trunk zone DSM exist"
  3. Input a raster layer for the TDSM
  4. Press run
  5. See error log below

Desktop (please complete the following information):

Error log Traceback (most recent call last):
              File "/Users/colinbell/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP-SuPy-QGIS3/SOLWEIG/solweig.py", line 411, in start_progress
              dataSet = gdal.Open(filePath_tdsm)
             NameError: name 'filePath_tdsm' is not defined

biglimp commented 3 years ago

Fixed. I can also recommend to use SOLWEIG in UMEP for processing (https://plugins.qgis.org/plugins/processing_umep/)