Replies: 2 comments 1 reply
-
Hello everybody! Laura |
Beta Was this translation helpful? Give feedback.
-
Hi Laura and thank you for reporting. Can you share the original AND the reduced size datasets that you have used and that lead to the error ? |
Beta Was this translation helpful? Give feedback.
-
Hello everybody!
I've been having issues with the Urban Wind Field: URock v2023a tool.
I tried to reduce the size of the area but it still gave me the same error, which is:
Versione di QGIS: 3.34.5-Prizren
Revisione codice QGIS: 4b308492
Versione di Qt: 5.15.3
Versione Python: 3.9.18
Versione di GDAL: 3.8.4
Versione di GEOS: 3.12.1-CAPI-1.18.1
Versione di PROJ: Rel. 9.3.1, December 1st, 2023
versione di PDAL: 2.6.0 (git-version: 3fced5)
Algoritmo iniziato alle: 2025-01-12T01:28:40
In avvio l'algoritmo 'Urban Wind Field: URock v2023a' …
Parametri in ingresso:
{ 'ATTENUATION_FIELD' : '', 'BUILDINGS' : 'C:/Users/Laura/Dropbox (Politecnico Di Torino Studenti)/Tesi_magistrale/UMEP - Torino/AnotherOne/19/1_UrockPrepare/19_UrP_build.shp', 'HEIGHT_FIELD_BUILD' : 'Bui_HEIGHT', 'HORIZONTAL_RESOLUTION' : 5, 'INPUT_PROFILE_FILE' : '', 'INPUT_PROFILE_TYPE' : 0, 'INPUT_WIND_DIRECTION' : 45, 'INPUT_WIND_HEIGHT' : 10, 'INPUT_WIND_SPEED' : 2, 'LOAD_OUTPUT' : True, 'OUTPUT_FILENAME' : '19', 'RASTER_OUTPUT' : None, 'SAVE_NETCDF' : False, 'SAVE_RASTER' : False, 'SAVE_VECTOR' : False, 'UROCK_OUTPUT' : 'C:\Users\Laura\Desktop\19_UrbanWindField', 'VEGETATION' : 'C:/Users/Laura/Dropbox (Politecnico Di Torino Studenti)/Tesi_magistrale/UMEP - Torino/AnotherOne/Urock_veg_clip/_19estensione_32632_UrP_veget.shp', 'VEGETATION_CROWN_BASE_HEIGHT' : '', 'VEGETATION_CROWN_TOP_HEIGHT' : 'Veg_HEIGHT', 'VERTICAL_RESOLUTION' : 5, 'WIND_HEIGHT' : '1.5' }
Writing settings for this model run to specified output folder (Filename: RunInfoURock_YYYY_DOY_HHMM.txt)
Initiating algorithm
Creates an H2GIS Instance and load data
Creates the stacked blocks used as obstacles
Rotates obstacles to the right direction and calculates geometry properties
Roughness zone properties are:
Creates the 2D Röckle zones
Creates the 2D grid
Initializes the 3D grid within Röckle zones
Traceback (most recent call last):
File "JdbcPreparedStatement.java", line 262, in org.h2.jdbc.JdbcPreparedStatement.execute
Exception: Java Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Laura\AppData\Roaming\Python\Python39\site-packages\jaydebeapi_init_.py", line 534, in execute
is_rs = self._prep.execute()
org.h2.jdbc.org.h2.jdbc.JdbcSQLDataException: org.h2.jdbc.JdbcSQLDataException: Invalid value "-0.06281183352066441" for parameter "LN() argument"; SQL statement:
CREATE TABLE VEGETATION_OPEN_TEMPO_3DPOINTS
AS SELECT b.ID_POINT, a.ID_Z, CASE WHEN a.Z>b.MAX_HEIGHT
THEN LOG((a.Z - 3 * 0.05 * MAX_CANOPY_HEIGHT) / 2.3880850405465655) / LOG(a.Z / 2.3880850405465655)
ELSE CASE WHEN a.Z > b.MAX_HEIGHT OR a.Z < b.MIN_HEIGHT
THEN LOG((b.MAX_CANOPY_HEIGHT - 3 * 0.05 * MAX_CANOPY_HEIGHT) / 2.3880850405465655) / LOG(a.Z / 2.3880850405465655)
ELSE LOG((b.MAX_HEIGHT - 3 * 0.05 * MAX_CANOPY_HEIGHT) / 2.3880850405465655) / LOG(a.Z / 2.3880850405465655) * EXP(b.ATTENUATIO * (a.Z / b.MAX_CANOPY_HEIGHT - 1))
END
END
AS VEGETATION_FACTOR
FROM Z_VALUES_20250112013951 AS a, VEGETATION_OPEN_POINTS AS b
WHERE a.Z > 0 [90008-232]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users/Laura/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\processor\urock_processing_algorithm.py", line 447, in processAlgorithm
MainCalculation.main(javaEnvironmentPath = javaEnvVar,
File "C:\Users/Laura/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\functions\URock\MainCalculation.py", line 540, in main
InitWindField.calculates3dVegWindFactor(cursor = cursor,
File "C:\Users/Laura/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_umep\functions\URock\InitWindField.py", line 1892, in calculates3dVegWindFactor
cursor.execute(";".join(["""
File "C:\Users\Laura\AppData\Roaming\Python\Python39\site-packages\jaydebeapi_init_.py", line 536, in execute
handle_sql_exception()
File "C:\Users\Laura\AppData\Roaming\Python\Python39\site-packages\jaydebeapi_init.py", line 165, in handle_sql_exception_jpype
reraise(exc_type, exc_info[1], exc_info[2])
File "C:\Users\Laura\AppData\Roaming\Python\Python39\site-packages\jaydebeapi_init.py", line 57, in reraise
raise value.with_traceback(tb)
File "C:\Users\Laura\AppData\Roaming\Python\Python39\site-packages\jaydebeapi_init_.py", line 534, in execute
is_rs = self._prep.execute()
jaydebeapi.DatabaseError: org.h2.jdbc.JdbcSQLDataException: Invalid value "-0.06281183352066441" for parameter "LN() argument"; SQL statement:
CREATE TABLE VEGETATION_OPEN_TEMPO_3DPOINTS
AS SELECT b.ID_POINT, a.ID_Z, CASE WHEN a.Z>b.MAX_HEIGHT
THEN LOG((a.Z - 3 * 0.05 * MAX_CANOPY_HEIGHT) / 2.3880850405465655) / LOG(a.Z / 2.3880850405465655)
ELSE CASE WHEN a.Z > b.MAX_HEIGHT OR a.Z < b.MIN_HEIGHT
THEN LOG((b.MAX_CANOPY_HEIGHT - 3 * 0.05 * MAX_CANOPY_HEIGHT) / 2.3880850405465655) / LOG(a.Z / 2.3880850405465655)
ELSE LOG((b.MAX_HEIGHT - 3 * 0.05 * MAX_CANOPY_HEIGHT) / 2.3880850405465655) / LOG(a.Z / 2.3880850405465655) * EXP(b.ATTENUATIO * (a.Z / b.MAX_CANOPY_HEIGHT - 1))
END
END
AS VEGETATION_FACTOR
FROM Z_VALUES_20250112013951 AS a, VEGETATION_OPEN_POINTS AS b
WHERE a.Z > 0 [90008-232]
Execution failed after 671.54 secondi (11 minuti 12 secondi)
Do you know what i can do to make it work?
Beta Was this translation helpful? Give feedback.
All reactions