UMEP-dev / UMEP

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

SOLWEIG analyzer #35

Closed sunt05 closed 6 years ago

sunt05 commented 6 years ago

Original report by andymac1091 (Bitbucket: andymac1091, GitHub: andymac1091).


Hi

I'm trying to analyse some results from the SOLWEIG processor. However, the analyzer only seems to work if the processor has been run in the same 'QGIS session'. By that i mean if i run the processor, save my QGIS session (or just exit) then come back the next day and try and run the analyzer i get the below error. However, if i run everything (processor and analzyer) in the same session (one after another) everything works fine. Is this an issue or am i doing something incorrectly. I've tried this both with the test data and my own.

Thanks

Andy

2018-03-01T13:21:16 1 Traceback (most recent call last): File "C:/Users/Andy/.qgis2/python/plugins\UMEP\SolweigAnalyzer\solweig_analyzer.py", line 643, in start_progress_spatial grid = gdal_dsm.ReadAsArray().astype(np.float) AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

RunInfo file This file provides run settings for the SOLWEIG run initiated at: Thu, 01 Mar 2018 13:19:11 Version: SOLWEIG v2015a

SURFACE DATA Digital surface model (DSM): E:\paper4\TESTDATA\testdata_UMEP\testdata_UMEP\Goteborg_SWEREF99_1200\DSM_KRbig.tif Model domain: rows = 223, columns = 234 Projected referece system: SWEREF99 12 00 Geographical coordinate system: SWEREF99 Latitude: 57.706161175 Longitude: 11.9617555361 UTC: 1 Transmissivity of light through vegetation: 0.03 Digital vegetation canopy model (CDSM): E:\paper4\TESTDATA\testdata_UMEP\testdata_UMEP\Goteborg_SWEREF99_1200\CDSM_KRbig.asc Trunkzone estimated from CDSM Trunkzone as percent of canopy height: 0.25 Landcover scheme active. Parameters taken from: C:/Users/Andy/.qgis2/python/plugins\UMEP\SOLWEIG/landcoverclasses_2016a.txt Landcover grid: E:\paper4\TESTDATA\testdata_UMEP\testdata_UMEP\Goteborg_SWEREF99_1200\landcover.tif

METEOROLOGICAL FORCING DATA Meteorological file not usedYear: 1997.0 Day of Year: 157.0 Hour: 12.0 Minute: 30.0 Ait temperature: 23.0 Relative humidity: 30.0 Global radiation: 810.0 Diffuse radiation: 92.5 Direct radiation: 895.0

HUMAN EXPOSURE PARAMETERS Absorption, shortwave radiation: 0.7 Absorption, longwave radiation: 0.95 Posture of human body: Standing ENVIRONMENTAL PARAMETERS Albedo of walls: 0.2 Albedo of ground (not used if land cover scheme is active): 0.15 Emissivity (walls): 0.9 Emissivity of ground (not used if land cover scheme is active): 0.95

ADDITIONAL SETTINGS Human considered as a cylinder

sunt05 commented 6 years ago

Original comment by andymac1091 (Bitbucket: andymac1091, GitHub: andymac1091).


After a bit of further investigation it seems that the average file is causing the issue. By that i mean when i've been running the SOLWEIG processor i've produced an average TMRT image along with hourly ones. If i then run the SOLWEIG analyzer it seems to ignore the average file and produce a result. However, if i exit QGIS then reload my project and the average file (.tif) is still there that's when i get the error. Now i just move the average .tif out of the folder and it works!

sunt05 commented 6 years ago

Original comment by Fredrik Lindberg (Bitbucket: fredrik_ucg, ).


Thanks for this info. We will sort this out and release a new version soon.

sunt05 commented 6 years ago

Original comment by Fredrik Lindberg (Bitbucket: fredrik_ucg, ).


I think this is resolved now. However, I could not replicate your specific issue.

sunt05 commented 6 years ago

Original changes by andymac1091 (Bitbucket: andymac1091, GitHub: andymac1091).


changed content from "Hi

I'm trying to analyse some results from the SOLWEIG processor. However, the analyzer only seems to work if the processor has been run in the same 'QGIS session'. By that i mean if i run the processor, save my QGIS session (or just exit) then come b" to "Hi

I'm trying to analyse some results from the SOLWEIG processor. However, the analyzer only seems to work if the processor has been run in the same 'QGIS session'. By that i mean if i run the processor, save my QGIS session (or just exit) then come b"

sunt05 commented 6 years ago

Original changes by andymac1091 (Bitbucket: andymac1091, GitHub: andymac1091).


changed content from "Hi

I'm trying to analyse some results from the SOLWEIG processor. However, the analyzer only seems to work if the processor has been run in the same 'QGIS session'. By that i mean if i run the processor, save my QGIS session (or just exit) then come b" to "Hi

I'm trying to analyse some results from the SOLWEIG processor. However, the analyzer only seems to work if the processor has been run in the same 'QGIS session'. By that i mean if i run the processor, save my QGIS session (or just exit) then come b"

sunt05 commented 6 years ago

Original changes by Fredrik Lindberg (Bitbucket: fredrik_ucg, ).


changed state from "new" to "resolved"