-
Notifications
You must be signed in to change notification settings - Fork 23
Urban Heat Island: TARGET #826
Description
Hello,
I'm having some trouble using the processor Urban Heat Island: TARGET.
I tried to replicate the tutorial for another site for which I created a Gird 300x300m and use it the guidance.
The problem that kept pop up were three:
-
The Urban Morphology: Morphometric Calculator output (“L_To_IMPGrid_isotropic” in my case) had some pai numbers equal to 1.000 which created the denominator in the algorithm to result equal to 0. Therefore it stop the calculation because it couldn't divide by 0.
The solution I found was to transform every 1.000 in the pai column into 0.999 to make it work. -
The second problem come up when I tried to run the Urban Heat Island: TARGET:
“Versione di QGIS: 3.40.15-Bratislava
Revisione codice QGIS: f68f1bf573
Versione di Qt: 5.15.13
Versione Python: 3.12.12
Versione di GDAL: 3.12.1
Versione di GEOS: 3.14.1-CAPI-1.20.5
Versione di PROJ: Rel. 9.7.1, December 1st, 2025
versione di PDAL: 2.9.3 (git-version: 31d0d2)
Algoritmo iniziato alle: 2026-03-16T17:01:23
In avvio l'algoritmo 'Urban Heat Island: TARGET' …
Parametri in ingresso:
{ 'INPUT_FOLDER' : 'C:\Users\Laura\Desktop\UMEP\TARGET\TARGETTO\Shepe_segmentati\L\SezL_To', 'INPUT_MET' : 'C:\Users\Laura\Desktop\UMEP\1_Meteo dati\tutto 2023.txt', 'INPUT_POLYGONLAYER' : 'C:/Users/Laura/Desktop/UMEP/TARGET/TARGETTO/Shepe_segmentati/L_grid_300m.shp', 'MOD_LDOWN' : False, 'OUTPUT_CSV' : False, 'OUTPUT_UMEP' : True, 'RUN_NAME' : 'SezL_', 'START_DATE' : QDate(1985, 6, 16), 'START_DATE_INTEREST' : QDate(1985, 7, 1), 'STOP_DATE_INTEREST' : QDate(1985, 8, 1) }
Model calculation started.
Traceback (most recent call last):
File "C:\Users/Laura/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP-processing-main\processor\target_algorithm.py", line 243, in processAlgorithm
tar.run_simulation(save_csv=False)
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\target_py\scripts\toolkit.py", line 216, in run_simulation
for i in tqdm(range(0, len(met_data_all))):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\tqdm\std.py", line 1098, in init
self.refresh(lock_args=self.lock_args)
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\tqdm\std.py", line 1347, in refresh
self.display()
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\tqdm\std.py", line 1495, in display
self.sp(self.str() if msg is None else msg)
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\tqdm\std.py", line 459, in print_status
fp_write('\r' + s + (' ' * max(last_len[0] - len_s, 0)))
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\tqdm\std.py", line 452, in fp_write
fp.write(str(s))
^^^^^^^^
File "C:\Users\Laura\AppData\Roaming\Python\Python312\site-packages\tqdm\utils.py", line 140, in getattr
return getattr(self._wrapped, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'write'
Esecuzione fallita dopo 0.40 secondi
Caricamento layer
Algoritmo 'Urban Heat Island: TARGET' terminato”
In this case the solution was to set the output format to .cvs and it did start running, but it led to the last problem, which I report below
- The last problem is the Urban Heat Island: TARGET again. It keeps calculating and never end.
At first, I thought it was a problem of the grid quantity, so I reduced the number of quadrants for calculation, but all the problem that I reported here kept showing up.
Keep into count that I followed the tutorial on the website first and it did work out, even tho I had to understand the specific way that the folder path needed to be selected first. But the second time I tried to run the UHI:TARGET procesor, the point 3 problem presented again: in this case the UMEP output format was selected, as it was shown in the tutorial, but it kept bein stuck in the calculation process.
Hopefully you know what the problem could be and how to fix it.
Here I’m attaching all the file i used and the outputs i have:
L_shape.zip
PrePorcessing.zip
UIH_TARGET prepare output_SezL_To.zip
Thanks in advance,
Laura