This forum is shutting down! Please post new discussions at community.naturalcapitalproject.org

ERROR Hydropower Water Yield model. HELP, please.

Hello everyone.
I have an error running the "Hidropower Water Yield" model. Is it because I have a lag in my layers of raster and shape? and if that were the case, how can I solve it? I leave the message here and the final image. Thanks for your suggestions.

Initializing...

Showing messages with level INFO and higher

08/18/2018 11:55:21 natcap.invest.utils INFO Writing log messages to C:\Users\ROBERTO\Documents\hydropower_water_yield_workspace\InVEST-Hydropower-Water-Yield-log-2018-08-18--11_55_21.txt

08/18/2018 11:55:21 natcap.invest.ui.model Level 100 Starting model with parameters:

Arguments for InVEST natcap.invest.hydropower.hydropower_water_yield 3.4.4:

biophysical_table_uri C:/4_insumos_InVEST/9_BF_table/biophysical_table1.csv

calculate_valuation False

calculate_water_scarcity False

depth_to_root_rest_layer_uri C:/4_insumos_InVEST/2_depth_to_root/depth_root.tif

eto_uri C:/4_insumos_InVEST/5_Eto/ETo_30.tif

lulc_uri C:/4_insumos_InVEST/6_LULC/LULC_18.tif

pawc_uri C:/4_insumos_InVEST/4_PAWC/PAWC.tif

precipitation_uri C:/4_insumos_InVEST/3_Precipit/precip.tif

results_suffix

seasonality_constant 16

sub_watersheds_uri C:/4_insumos_InVEST/7_Cuencas/subcuencas_clip.shp

watersheds_uri C:/4_insumos_InVEST/7_Cuencas/watersheds.shp

workspace_dir C:\Users\ROBERTO\Documents\hydropower_water_yield_workspace


08/18/2018 11:55:21 natcap.invest.hydropower.hydropower_water_yield INFO Starting Water Yield Core Calculations

08/18/2018 11:55:21 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable 'spatial_ref' referenced before assignment

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py", line 176, in _merge_local_bounding_boxes

UnboundLocalError: local variable 'spatial_ref' referenced before assignment

08/18/2018 11:55:21 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable 'spatial_ref' referenced before assignment

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py", line 176, in _merge_local_bounding_boxes

UnboundLocalError: local variable 'spatial_ref' referenced before assignment

08/18/2018 11:55:21 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable 'spatial_ref' referenced before assignment

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py", line 176, in _merge_local_bounding_boxes

UnboundLocalError: local variable 'spatial_ref' referenced before assignment

08/18/2018 11:55:21 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable 'spatial_ref' referenced before assignment

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py", line 176, in _merge_local_bounding_boxes

UnboundLocalError: local variable 'spatial_ref' referenced before assignment

08/18/2018 11:55:21 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable 'spatial_ref' referenced before assignment

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py", line 176, in _merge_local_bounding_boxes

UnboundLocalError: local variable 'spatial_ref' referenced before assignment

08/18/2018 11:55:21 natcap.invest.ui.usage ERROR Error when transforming coordinates: local variable 'spatial_ref' referenced before assignment

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\usage.py", line 176, in _merge_local_bounding_boxes

UnboundLocalError: local variable 'spatial_ref' referenced before assignment

08/18/2018 11:55:21 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x11C394B0>

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py", line 1505, in _logged_target

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\hydropower\hydropower_water_yield.py", line 126, in execute

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\pygeoprocessing_0_3_3\geoprocessing.py", line 2035, in align_dataset_list

Exception: The datasets' intersection is empty (i.e., not all the datasets touch each other).

08/18/2018 11:55:21 natcap.invest.ui.model INFO Execution finished

08/18/2018 11:55:21 natcap.invest.utils INFO Elapsed time: 0.23s

08/18/2018 11:55:21 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x1A498DB0> failed with exception

Traceback (most recent call last):

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\execution.py", line 68, in run

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\ui\model.py", line 1505, in _logged_target

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\hydropower\hydropower_water_yield.py", line 126, in execute

File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\pygeoprocessing_0_3_3\geoprocessing.py", line 2035, in align_dataset_list

Exception: The datasets' intersection is empty (i.e., not all the datasets touch each other).

08/18/2018 11:55:21 natcap.invest.ui.execution INFO Execution finished



901 x 663 - 68K

Comments

  • swolnyswolny Member, NatCap Staff
    Hi @RobertPV -

    Many people have had this kind of issue in the past, and it's usually because not all of the input datasets are in the same projected coordinate system. I'd suggest searching the forum for "The datasets' intersection is empty", where you'll find discussions like thisthis and this, you can see what has worked for others. If this still doesn't help, let us know.

    ~ Stacie
Sign In or Register to comment.