HRA model troubles

rudebuschjanerudebuschjane Member
edited August 9 in General
Hoping to get help with this error I keep encountering while trying to run the HRA (after successfully running preprocessor.) About 6 seconds into execution I get this message "KeyError encountered: (u'softbottom', u'DocksWharvesMarinas') See Log for details" 

This problem was solved once before but I can't remember how to do it again. We think it happens because when we first ran the model we used the sample dataset provided by Invest and now when switching to my own data the model keeps trying to remember that sample data/workspace and use it, even though the workspaces and paths are all defined correctly. Gregg sorted it out once but now it's back!
Any help appreciated, Thanks!

LOG file:

08/08/2018 17:10:28  natcap.invest.utils INFO     Writing log messages to C:\SF_OTTER\InVEST_HRA\InVEST-Habitat-Risk-Assessment-log-2018-08-08--17_10_28.txt
08/08/2018 17:10:28  natcap.invest.ui.model Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.habitat_risk_assessment.hra 3.4.4:
aoi_tables     C:/SF_OTTER/SFOtter/central_bay.shp
csv_uri        C:\SF_OTTER\InVEST_HRA\habitat_stressor_ratings
decay_eq       None
grid_size      500
max_rating     3
max_stress     5
results_suffix
risk_eq        Euclidean
workspace_dir  C:\SF_OTTER\InVEST_HRA
08/08/2018 17:10:28  natcap.invest.habitat_risk.preprocessor DEBUG    ['cargotanker', '100']
08/08/2018 17:10:28  natcap.invest.habitat_risk.preprocessor DEBUG    ['commercialfishing', '100']
08/08/2018 17:10:28  natcap.invest.habitat_risk.preprocessor DEBUG    ['ferries', '100']
08/08/2018 17:10:28  natcap.invest.habitat_risk.preprocessor DEBUG    ['methylmercury', '100']
08/08/2018 17:10:28  natcap.invest.habitat_risk.preprocessor DEBUG    ['oilspill', '100']
08/08/2018 17:10:28  natcap.invest.habitat_risk_assessment.hra DEBUG    PATH: C:\SF_OTTER\InVEST_HRA\Habitat
08/08/2018 17:10:28  natcap.invest.habitat_risk_assessment.hra DEBUG    PATH: C:\SF_OTTER\InVEST_HRA\Stressors
08/08/2018 17:10:28  natcap.invest.habitat_risk_assessment.hra INFO     Rasterizing shapefile layers.
08/08/2018 17:10:29  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 1
08/08/2018 17:10:29  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 2
08/08/2018 17:10:29  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 1
08/08/2018 17:10:29  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 2
08/08/2018 17:10:33  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 1
08/08/2018 17:10:33  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 2
08/08/2018 17:10:34  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 1
08/08/2018 17:10:34  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 2
08/08/2018 17:10:34  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 1
08/08/2018 17:10:34  natcap.invest.pygeoprocessing_0_3_3.geoprocessing_cython INFO     Distance Transform Phase 2
08/08/2018 17:10:34  natcap.invest.habitat_risk_assessment.hra DEBUG    Compute Overlap is set to True, for pair ('studyarea_SF', 'commercialfishing')
08/08/2018 17:10:34  natcap.invest.habitat_risk_assessment.hra DEBUG    Compute Overlap is set to True, for pair ('studyarea_SF', 'cargotanker')
08/08/2018 17:10:34  natcap.invest.habitat_risk_assessment.hra DEBUG    Compute Overlap is set to True, for pair ('studyarea_SF', 'ferries')
08/08/2018 17:10:34  natcap.invest.habitat_risk_assessment.hra DEBUG    Compute Overlap is set to True, for pair ('studyarea_SF', 'methylmercury')
08/08/2018 17:10:34  natcap.invest.habitat_risk_assessment.hra DEBUG    Compute Overlap is set to True, for pair ('studyarea_SF', 'oilspill')
08/08/2018 17:10:34  natcap.invest.ui.model ERROR    Exception while executing <function execute at 0x116466F0>
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\habitat_risk_assessment\hra.py", line 426, in execute
  File "c:\users\natcap-servers\jenkins-home\workspace\natcap.invest\label\gce-windows-1\release_env\lib\site-packages\natcap\invest\habitat_risk_assessment\hra.py", line 1195, in add_crit_rasters
KeyError: (u'softbottom', u'DocksWharvesMarinas')
08/08/2018 17:10:34  natcap.invest.ui.model INFO     Execution finished
08/08/2018 17:10:34  natcap.invest.utils INFO     Elapsed time: 6.18s

Post edited by rudebuschjane on
Tagged:
Sign In or Register to comment.