Something went wrong when adding task calculate T air (12)

From a student of mine - any insights??:
"I have been unable to get Invest to run properly to look at a scenario. At first it was an error that I had no space on my harddrive. I use GIS for my thesis and job as well, so I definitely have a very full computer. I deleted what I could, but now I get these errors instead:

02/26/2023 21:48:31 taskgraph.Task ERROR Something went wrong when adding task calculate T air (12), terminating taskgraph. Traceback (most recent call last): File “taskgraph\Task.py”, line 674, in add_task File “taskgraph\Task.py”, line 1093, in _call File “natcap\invest\urban_cooling_model.py”, line 1399, in convolve_2d_by_exponential File “pygeoprocessing\geoprocessing.py”, line 2797, in convolve_2d File “queue.py”, line 179, in get _queue.Empty
02/26/2023 21:48:31 natcap.invest.utils ERROR Exception while executing natcap.invest.urban_cooling_model Traceback (most recent call last): File “natcap\invest\utils.py”, line 164, in prepare_workspace File “invest\cli.py”, line 486, in main File “natcap\invest\urban_cooling_model.py”, line 549, in execute File “taskgraph\Task.py”, line 674, in add_task File “taskgraph\Task.py”, line 1093, in _call File “natcap\invest\urban_cooling_model.py”, line 1399, in convolve_2d_by_exponential File “pygeoprocessing\geoprocessing.py”, line 2797, in convolve_2d File “queue.py”, line 179, in get _queue.Empty
02/26/2023 21:48:31 natcap.invest.utils INFO Elapsed time: 1m 0.259999999999998s 02/26/2023 21:48:31 natcap.invest.utils INFO Execution finished"

Hey @elonsdorf -

Can they provide the entire log file (.txt) that’s produced in the Workspace? That might have more info to help troubleshoot. Thanks!

~ Stacie

1 Like

Here you go! Thanks Stacie!

02/27/2023 15:51:55 natcap.invest.utils Level 100 Writing log messages to [C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\San Antonio\Cooling Results\InVEST-natcap.invest.urban_cooling_model-log-2023-02-27–15_51_55.txt]
02/27/2023 15:51:55 main Level 100 Starting model with parameters: Arguments for InVEST natcap.invest.urban_cooling_model 3.12.1: aoi_vector_path C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\Feb 23 equity data\San Antonio TX.shp avg_rel_humidity biophysical_table_path C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\Feb 23 equity data\urban_cooling_biophysical_parameters.csv building_vector_path cc_method factors cc_weight_albedo cc_weight_eti cc_weight_shade do_energy_valuation False do_productivity_valuation False energy_consumption_table_path green_area_cooling_distance 450 lulc_raster_path C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\Feb 23 equity data\lulc_vacant.tif n_workers -1 ref_eto_raster_path C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\Feb 23 equity data\et0.tif results_suffix vacant_day t_air_average_radius 600 t_ref 29.7 uhi_max 3.56 workspace_dir C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\San Antonio\Cooling Results 02/27/2023 15:51:55 natcap.invest.urban_cooling_model INFO Starting Urban Cooling Model
02/27/2023 15:51:55 natcap.invest.utils WARNING Empty or NaN values were found in the table: C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\Feb 23 equity data\urban_cooling_biophysical_parameters.csv.
02/27/2023 15:51:55 natcap.invest.urban_cooling_model INFO Calculating Cooling Coefficient from factors
02/27/2023 15:51:55 natcap.invest.urban_cooling_model INFO Starting a convolution over C:\Users\kelly\OneDrive\Documents\GIS\Urban Cooling\San Antonio\Cooling Results\intermediate\T_air_nomix_vacant_day.tif with a decay distance of 18
02/27/2023 15:51:55 pygeoprocessing.geoprocessing INFO starting convolve
02/27/2023 15:51:55 pygeoprocessing.geoprocessing INFO 56 sent to workers, wait for worker results
02/27/2023 15:52:55 taskgraph.Task ERROR Something went wrong when adding task calculate T air (12), terminating taskgraph. Traceback (most recent call last): File “taskgraph\Task.py”, line 674, in add_task File “taskgraph\Task.py”, line 1093, in _call File “natcap\invest\urban_cooling_model.py”, line 1399, in convolve_2d_by_exponential File “pygeoprocessing\geoprocessing.py”, line 2797, in convolve_2d File “queue.py”, line 179, in get _queue.Empty
02/27/2023 15:52:55 natcap.invest.utils ERROR Exception while executing natcap.invest.urban_cooling_model Traceback (most recent call last): File “natcap\invest\utils.py”, line 164, in prepare_workspace File “invest\cli.py”, line 486, in main File “natcap\invest\urban_cooling_model.py”, line 549, in execute File “taskgraph\Task.py”, line 674, in add_task File “taskgraph\Task.py”, line 1093, in _call File “natcap\invest\urban_cooling_model.py”, line 1399, in convolve_2d_by_exponential File “pygeoprocessing\geoprocessing.py”, line 2797, in convolve_2d File “queue.py”, line 179, in get _queue.Empty 02/27/2023 15:52:55 natcap.invest.utils INFO Elapsed time: 1m 0.20000000000000284s 02/27/2023 15:52:55 natcap.invest.utils INFO Execution finished

@elonsdorf thanks for the logfile! It’s not immediately clear what the issue is. Could you ask your student to email me (google drive or a similar file sharing service is usually best) their inputs so I can try to reproduce the issue? jdouglass@stanford.edu

Thanks, Eric!
James

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.