InVEST Model SDR error: ValueError: The following 1 raster values [53] from...

Hi All,

I am running the SDR model with InVEST Model 3.5. I am getting the following error. Here is the log:

11/23/2018 19:18:11  natcap.invest.utils INFO     Writing log messages to C:\Users\Ang Chen\Documents\sdr_workspace\InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2018-11-23--19_18_11.txt
11/23/2018 19:18:11  natcap.invest.ui.model Level 100 Starting model with parameters: 
Arguments for InVEST natcap.invest.sdr 3.5.0:
biophysical_table_path      C:/Users/Ang Chen/Documents/sdr_workspace/biophysical_table.csv
dem_path                    C:/Users/Ang Chen/Documents/sdr_workspace/DEM.tif
drainage_path               
erodibility_path            C:/Users/Ang Chen/Documents/sdr_workspace/Soil_Ero.tif
erosivity_path              C:/Users/Ang Chen/Documents/sdr_workspace/Rainfall_Ero.tif
ic_0_param                  0.5
k_param                     2
lulc_path                   C:/Users/Ang Chen/Documents/sdr_workspace/LUCC.tif
results_suffix              
sdr_max                     0.8
threshold_flow_accumulation 400
watersheds_path             C:/Users/Ang Chen/Documents/sdr_workspace/Watersheds.shp
workspace_dir               C:\Users\Ang Chen\Documents\sdr_workspace

Tagged:

Comments

  • swolnyswolny Member, NatCap Staff
    Hello @AngCHEN -

    It looks like you have a Value of 53 in your land use/land cover map that does not have a corresponding lucode entry in your biophysical table. Please check this and add an entry if it is missing. All values in the land use/land cover map must have entries in the biophysical table.

    ~ Stacie
  • AngCHENAngCHEN Member
    edited November 26
    Hello @swolny

    It works after i add an entry in biophysical table. but there is a new error. "KeyError encountered 1"
    could you please help.

    11/23/2018 19:18:11  natcap.invest.utils INFO     Writing log messages to C:\Users\Ang Chen\Documents\sdr_workspace\InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2018-11-23--19_18_11.txt
    11/23/2018 19:18:11  natcap.invest.ui.model Level 100 Starting model with parameters: 
    Arguments for InVEST natcap.invest.sdr 3.5.0:
    biophysical_table_path      C:/Users/Ang Chen/Documents/sdr_workspace/biophysical_table.csv
    dem_path                    C:/Users/Ang Chen/Documents/sdr_workspace/DEM.tif
    drainage_path               
    erodibility_path            C:/Users/Ang Chen/Documents/sdr_workspace/Soil_Ero.tif
    erosivity_path              C:/Users/Ang Chen/Documents/sdr_workspace/Rainfall_Ero.tif
    ic_0_param                  0.5
    k_param                     2
    lulc_path                   C:/Users/Ang Chen/Documents/sdr_workspace/LUCC.tif
    results_suffix              
    sdr_max                     0.8
    threshold_flow_accumulation 400
    watersheds_path             C:/Users/Ang Chen/Documents/sdr_workspace/Watersheds.shp
    workspace_dir               C:\Users\Ang Chen\Documents\sdr_workspace

    11/23/2018 19:18:12  pygeoprocessing.geoprocessing INFO     n_workers > 1 (2) so starting a processes pool.
    11/23/2018 19:18:13  pygeoprocessing.geoprocessing INFO     1 of 4 aligned: aligned_dem.tif
    11/23/2018 19:18:13  pygeoprocessing.geoprocessing INFO     2 of 4 aligned: aligned_lulc.tif
    11/23/2018 19:18:14  pygeoprocessing.geoprocessing INFO     3 of 4 aligned: aligned_erosivity.tif
    11/23/2018 19:18:14  pygeoprocessing.geoprocessing INFO     4 of 4 aligned: aligned_erodibility.tif
    11/23/2018 19:18:14  pygeoprocessing.geoprocessing INFO     aligned all 4 rasters.
    11/23/2018 19:18:14  natcap.invest.sdr  INFO     calculating slope
    11/23/2018 19:18:16  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/23/2018 19:18:16  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-6, started daemon 228532)>
    11/23/2018 19:18:16  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/23/2018 19:18:16  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/23/2018 19:18:16  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/23/2018 19:18:16  natcap.invest.sdr  INFO     calculating flow direction
    11/23/2018 19:18:22  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     labeling flats
    11/23/2018 19:18:22  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining away from higher
    11/23/2018 19:18:22  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining towards lower
    11/23/2018 19:18:22  natcap.invest.pygeoprocessing_0_3_3.routing DEBUG    flats exist, calculating flow direction for them
    11/23/2018 19:18:23  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     labeling flats
    11/23/2018 19:18:24  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining away from higher
    11/23/2018 19:18:24  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining towards lower
    11/23/2018 19:18:24  natcap.invest.pygeoprocessing_0_3_3.routing INFO     flats exist on second pass, must be flat areas that abut the raster edge
    11/23/2018 19:18:24  natcap.invest.sdr  INFO     calculating flow accumulation
    11/23/2018 19:18:24  natcap.invest.pygeoprocessing_0_3_3.routing DEBUG    starting flow accumulation
    11/23/2018 19:18:27  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/23/2018 19:18:29  natcap.invest.sdr  INFO     calculate ls term
    11/23/2018 19:18:29  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/23/2018 19:18:29  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-7, started daemon 225452)>
    11/23/2018 19:18:30  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/23/2018 19:18:30  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/23/2018 19:18:30  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/23/2018 19:18:30  natcap.invest.sdr  INFO     classifying streams from flow accumulation raster
    11/23/2018 19:18:31  natcap.invest.sdr  INFO     calculate per pixel W
    11/23/2018 19:18:31  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/23/2018 19:18:31  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-8, started daemon 228620)>
    11/23/2018 19:18:31  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/23/2018 19:18:31  natcap.invest.ui.model ERROR    Exception while executing <function execute at 0x16295030>
    Traceback (most recent call last):
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\sdr.py", line 205, in execute
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\sdr.py", line 554, in _calculate_w
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 1571, in reclassify_raster
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 421, in raster_calculator
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\pygeoprocessing\geoprocessing.py", line 1565, in _map_dataset_to_value_op
    ValueError: The following 1 raster values [53] from "C:\Users\Ang Chen\Documents\sdr_workspace\aligned_lulc.tif" do not have corresponding entries in the `value_map`: {32L: 0.3, 33L: 0.3, 66L: 1.0, 11L: 0.228, 41L: 0.0, 42L: 0.0, 43L: 0.0, 12L: 0.228, 51L: 0.0, 52L: 0.0, 21L: 0.005, 22L: 0.1, 23L: 0.1, 24L: 0.1, 31L: 0.3}
    11/23/2018 19:18:31  natcap.invest.ui.model INFO     Execution finished
    11/23/2018 19:18:31  natcap.invest.utils INFO     Elapsed time: 19.42s

    Post edited by AngCHEN on
  • RichRich Administrator, NatCap Staff
    Hi AngCHEN, the log you posted looks like it's the same log with the missing landcover code of 53 you posted earlier. Could you post the full log from the ""KeyError encountered 1" error you're getting?
  • AngCHENAngCHEN Member
    edited November 26
    Post edited by AngCHEN on
  • I don't know why i can not upload the log file.

    here is a brief error discription.

    KeyError: 1

    11/26/2018 15:50:26 natcap.invest.ui.execution INFO Execution finished

    11/26/2018 15:51:33 natcap.invest.ui.usage._log_model WARNING an exception encountered when logging URLError(error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'),)

    11/26/2018 15:52:34 natcap.invest.ui.usage._log_exit_status WARNING an exception encountered when _log_exit_status <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>

  • swolnyswolny Member, NatCap Staff
    Hi @AngCHEN -

    We really do need more information than that to help troubleshoot. If you cannot upload the log file as an attachment, please copy and paste it into the comment window, like you did before - thanks!

    ~ Stacie
  • @swolny @Rich Thanks for your comments. here is the details.

    11/26/2018 13:21:23  natcap.invest.utils INFO     Writing log messages to C:\Users\Ang Chen\Documents\sdr_workspace\InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2018-11-26--13_21_23.txt
    11/26/2018 13:21:23  natcap.invest.ui.model Level 100 Starting model with parameters: 
    Arguments for InVEST natcap.invest.sdr 3.5.0:
    biophysical_table_path      C:/Users/Ang Chen/Documents/sdr_workspace/biophysical_table.csv
    dem_path                    C:/Users/Ang Chen/Documents/sdr_workspace/DEM.tif
    drainage_path               C:/Users/Ang Chen/Documents/sdr_workspace/Drainages.tif
    erodibility_path            C:/Users/Ang Chen/Documents/sdr_workspace/SEros.tif
    erosivity_path              C:/Users/Ang Chen/Documents/sdr_workspace/REros.tif
    ic_0_param                  0.5
    k_param                     2
    lulc_path                   C:/Users/Ang Chen/Documents/sdr_workspace/LU2015.tif
    results_suffix              
    sdr_max                     0.8
    threshold_flow_accumulation 400
    watersheds_path             C:/Users/Ang Chen/Documents/sdr_workspace/Watersheds.shp
    workspace_dir               C:\Users\Ang Chen\Documents\sdr_workspace

    11/26/2018 13:21:23  pygeoprocessing.geoprocessing INFO     n_workers > 1 (2) so starting a processes pool.
    11/26/2018 13:21:25  pygeoprocessing.geoprocessing INFO     1 of 5 aligned: aligned_dem.tif
    11/26/2018 13:21:25  pygeoprocessing.geoprocessing INFO     2 of 5 aligned: aligned_lulc.tif
    11/26/2018 13:21:25  pygeoprocessing.geoprocessing INFO     3 of 5 aligned: aligned_erosivity.tif
    11/26/2018 13:21:26  pygeoprocessing.geoprocessing INFO     4 of 5 aligned: aligned_erodibility.tif
    11/26/2018 13:21:26  pygeoprocessing.geoprocessing INFO     5 of 5 aligned: aligned_drainage.tif
    11/26/2018 13:21:26  pygeoprocessing.geoprocessing INFO     aligned all 5 rasters.
    11/26/2018 13:21:26  natcap.invest.sdr  INFO     calculating slope
    11/26/2018 13:21:27  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:27  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-6, started daemon 33200)>
    11/26/2018 13:21:27  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:27  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:27  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:27  natcap.invest.sdr  INFO     calculating flow direction
    11/26/2018 13:21:32  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     labeling flats
    11/26/2018 13:21:32  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining away from higher
    11/26/2018 13:21:33  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining towards lower
    11/26/2018 13:21:33  natcap.invest.pygeoprocessing_0_3_3.routing DEBUG    flats exist, calculating flow direction for them
    11/26/2018 13:21:34  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     labeling flats
    11/26/2018 13:21:34  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining away from higher
    11/26/2018 13:21:34  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core INFO     draining towards lower
    11/26/2018 13:21:34  natcap.invest.pygeoprocessing_0_3_3.routing INFO     flats exist on second pass, must be flat areas that abut the raster edge
    11/26/2018 13:21:35  natcap.invest.sdr  INFO     calculating flow accumulation
    11/26/2018 13:21:35  natcap.invest.pygeoprocessing_0_3_3.routing DEBUG    starting flow accumulation
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:37  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:39  natcap.invest.sdr  INFO     calculate ls term
    11/26/2018 13:21:39  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:39  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-7, started daemon 33280)>
    11/26/2018 13:21:40  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:40  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:40  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:41  natcap.invest.sdr  INFO     classifying streams from flow accumulation raster
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-8, started daemon 32200)>
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:41  natcap.invest.sdr  INFO     calculate per pixel W
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-9, started daemon 19188)>
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:41  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-10, started daemon 33060)>
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:42  natcap.invest.sdr  INFO     calculate CP raster
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-11, started daemon 33056)>
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:42  natcap.invest.sdr  INFO     calculating RKLS
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-12, started daemon 29492)>
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:42  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:44  natcap.invest.sdr  INFO     calculating USLE
    11/26/2018 13:21:44  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:44  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-13, started daemon 33384)>
    11/26/2018 13:21:45  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:45  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:45  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:47  natcap.invest.sdr  INFO     calculating w_bar
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:49  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:51  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:51  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-14, started daemon 33368)>
    11/26/2018 13:21:51  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:51  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:51  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:53  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:21:55  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:55  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-15, started daemon 33528)>
    11/26/2018 13:21:55  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:55  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:55  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:56  natcap.invest.sdr  INFO     calculating d_up
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-16, started daemon 33476)>
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:56  natcap.invest.sdr  INFO     calculate WS factor
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-17, started daemon 33488)>
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:21:56  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:21:57  natcap.invest.sdr  INFO     calculating d_dn
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    <font face="
  • @swolny @Rich Maybe there is too much text in the log. below continues.

    WARNING  no flow direction found for 0 4
    11/26/2018 13:21:57  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:01  natcap.invest.sdr  INFO     calculate ic
    11/26/2018 13:22:01  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:01  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-18, started daemon 28284)>
    11/26/2018 13:22:01  py.warnings        WARNING  C:\INVEST~1.0_X\INVEST~1\natcap\invest\sdr.py:776: RuntimeWarning: invalid value encountered in log10

    11/26/2018 13:22:01  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:01  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:01  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:03  natcap.invest.sdr  INFO     calculate sdr
    11/26/2018 13:22:03  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:03  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-19, started daemon 28368)>
    11/26/2018 13:22:03  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:03  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:03  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:05  natcap.invest.sdr  INFO     calculate sed export
    11/26/2018 13:22:05  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:05  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-20, started daemon 28372)>
    11/26/2018 13:22:06  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:06  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:06  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:07  natcap.invest.sdr  INFO     calculate sediment retention index
    11/26/2018 13:22:07  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:07  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-21, started daemon 32944)>
    11/26/2018 13:22:07  py.warnings        WARNING  C:\INVEST~1.0_X\INVEST~1\natcap\invest\sdr.py:834: RuntimeWarning: invalid value encountered in subtract

    11/26/2018 13:22:08  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:08  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:08  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:10  natcap.invest.sdr  INFO     calculate sediment retention
    11/26/2018 13:22:10  natcap.invest.sdr  INFO     calculate S factor
    11/26/2018 13:22:10  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:10  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-22, started daemon 21996)>
    11/26/2018 13:22:10  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:10  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:10  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:10  natcap.invest.sdr  INFO     calculating d_dn bare soil
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 3
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:10  natcap.invest.pygeoprocessing_0_3_3.routing.routing_core WARNING  no flow direction found for 0 4
    11/26/2018 13:22:15  natcap.invest.sdr  INFO     calculating d_up bare soil
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-23, started daemon 32932)>
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:15  natcap.invest.sdr  INFO     calculate ic
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-24, started daemon 33260)>
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:15  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-25, started daemon 33240)>
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     starting stats_worker
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     started stats_worker <Thread(Thread-26, started daemon 33244)>
    11/26/2018 13:22:16  py.warnings        WARNING  C:\INVEST~1.0_X\INVEST~1\natcap\invest\sdr.py:881: RuntimeWarning: invalid value encountered in subtract

    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     100.0%% complete
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     signaling stats worker to terminate
    11/26/2018 13:22:16  pygeoprocessing.geoprocessing INFO     Waiting for raster stats worker result.
    11/26/2018 13:22:18  natcap.invest.sdr  INFO     generating report
    11/26/2018 13:22:18  pygeoprocessing.geoprocessing INFO     n_workers == 1 so a threadpool is sufficient
    11/26/2018 13:22:19  pygeoprocessing.geoprocessing INFO     1 of 1 aligned: clipped_rasterqcz1t8
    11/26/2018 13:22:19  pygeoprocessing.geoprocessing INFO     aligned all 1 rasters.
    11/26/2018 13:22:20  pygeoprocessing.geoprocessing INFO     n_workers == 1 so a threadpool is sufficient
    11/26/2018 13:22:21  pygeoprocessing.geoprocessing INFO     1 of 1 aligned: clipped_rasterkkg16k
    11/26/2018 13:22:21  pygeoprocessing.geoprocessing INFO     aligned all 1 rasters.
    11/26/2018 13:22:22  pygeoprocessing.geoprocessing INFO     n_workers == 1 so a threadpool is sufficient
    11/26/2018 13:22:22  pygeoprocessing.geoprocessing INFO     1 of 1 aligned: clipped_rastertvpces
    11/26/2018 13:22:22  pygeoprocessing.geoprocessing INFO     aligned all 1 rasters.
    11/26/2018 13:22:24  natcap.invest.ui.model ERROR    Exception while executing <function execute at 0x16935030>
    Traceback (most recent call last):
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\sdr.py", line 302, in execute
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\sdr.py", line 926, in _generate_report
    KeyError: 1
    11/26/2018 13:22:24  natcap.invest.ui.model INFO     Execution finished
    11/26/2018 13:22:24  natcap.invest.utils INFO     Elapsed time: 1m 0.38s

  • RichRich Administrator, NatCap Staff
    Looks like you have some data that do not cover any part of "watershed 1". That's often a data issue, but even still I think I've prevented that from crashing in a new version. Would you be willing to try this version? http://data.naturalcapitalproject.org/nightly-build/invest-forks/richsharp/InVEST_3.5.0.post709+hbc41e54bcc6c_x86_Setup.exe

    And if you wanted to debug this for yourself, you should have a sediment export raster in your output workspace. You could load up this raster and lay your watershed polygon over it and see if watershed ID is overlapping any data there.
  • Thanks, @Rich, @swolny, finally the problem was solved by disolving the watersheds layers.
    there is 9 rows in the attribute in the beginning, and we simplified it to 1 row.

Sign In or Register to comment.