UMEP-dev / UMEP-processing

7 stars 9 forks source link

Outdoor TC: AttributeError #27

Closed 4ngryB1rdGIStudent closed 1 year ago

4ngryB1rdGIStudent commented 1 year ago

Hey!

When running Outdoor Thermal Comfort: Spatial Thermal Comfort (from the post processor) to calculate PET, it returns the error message below. From the spatialtc algorithm.py it seems to attempt to extract a building raster from the SOLWEIG output, which does not exist.

Regards, Emil

QGIS version: 3.28.0-Firenze QGIS code revision: ed3ad0430f3 Qt version: 5.15.3 Python version: 3.9.5 GDAL version: 3.5.3 GEOS version: 3.10.3-CAPI-1.16.1 PROJ version: Rel. 9.1.0, September 1st, 2022 PDAL version: 2.4.3 (git-version: 434757) Algorithm started at: 2023-05-03T11:30:12 Algorithm 'Outdoor Thermal Comfort: Spatial Thermal Comfort' starting… Input parameters: { 'ACTIVITY' : 80, 'AGE' : 35, 'CLO' : 0.9, 'COMFA' : False, 'HEIGHT' : 180, 'SEX' : 0, 'TC_OUT' : 'C:/Users/Emil Severiens/Desktop/GU/Sustainable Development Case Study/Data/PET/PET.tif', 'TC_TYPE' : 0, 'TMRT_MAP' : 'C:/Users/Emil Severiens/Desktop/GU/Sustainable Development Case Study/Data/Tmrt_average1.tif', 'UROCK_MAP' : 'C:/Users/Emil Severiens/Desktop/GU/Sustainable Development Case Study/Data/URock output/ClippedWS6.tif', 'WEIGHT' : 75 }

Initializing... Traceback (most recent call last): File "C:\Users/Emil Severiens/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\postprocessor\spatialtc_algorithm.py", line 240, in processAlgorithm build = gdal_buildings.ReadAsArray().astype(float) AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

Execution failed after 0.13 seconds

Loading resulting layers Algorithm 'Outdoor Thermal Comfort: Spatial Thermal Comfort' finished