In VEST Habitat Quality- meeting error

Dear friends,
Hello dear researchers, I just meet a problem when I was trying to do Habitat Quality, and I really wish somebody can help me with that!
Please see the picture to know the problem that I meet.


The ‘roads’ in the image is one of the threat rasters.

Here is the log InVEST-Habitat-Quality-log-2021-02-08–02_05_26.txt (5.3 KB)
Not sure is there anything wrong with my tif file.

Thank you for any help!!

Hi @WHB , thanks for posting. Do you have a ‘roads’ column in the sensitivity table input? The error suggests the model expects to find that column, but cannot find it.

If nothing looks strange, could you upload that sensitivity csv file here?

Thanks,

1 Like

Dear Dave,
I also encountered the same problem, please see attached log and csv. could you please give me your email, so I can send you the input data, which is too big to upload here.
Thank you.
Su[InVEST-Habitat-Quality-log-2021-04-05–20_55_32.txt|attachment]sensitivity_JJJ.csv (972 Bytes) threats_JJJ.csv (268 Bytes)

please check the log:
2021-04-05 20:55:32,163 utils.prepare_workspace(109) INFO Writing log messages to G:\papers\Paper1-Jing-Jin-Ji\Habitat quality_output\InVEST-Habitat-Quality-log-2021-04-05–20_55_32.txt
2021-04-05 20:55:32,164 model._logged_target(1633) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.habitat_quality 3.7.0:
access_vector_path G:/papers/Paper1-Jing-Jin-Ji/JJJ_Habitat quality/accessibility.shp
half_saturation_constant 0.5
lulc_cur_path G:/papers/Paper1-Jing-Jin-Ji/JJJ_Habitat quality/lulc2015.tif
n_workers -1
sensitivity_table_path G:/papers/Paper1-Jing-Jin-Ji/JJJ_Habitat quality/sensitivity_JJJ.csv
suffix
threat_raster_folder G:\papers\Paper1-Jing-Jin-Ji\JJJ_Habitat quality
threats_table_path G:/papers/Paper1-Jing-Jin-Ji/JJJ_Habitat quality/threats_JJJ.csv
workspace_dir G:\papers\Paper1-Jing-Jin-Ji\Habitat quality_output

2021-04-05 20:55:32,220 model._logged_target(1639) ERROR Exception while executing <function execute at 0x0F5250F0>
Traceback (most recent call last):
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\ui\model.py”, line 1636, in _logged_target
File “Z:\opt\atlassian\pipelines\agent\build\env\lib\site-packages\natcap\invest\habitat_quality.py”, line 112, in execute
ValueError: Threat “urban” does not match any column in the sensitivity table. Possible columns: set([‘urban’, ‘built’, ‘crop’, ‘highway’, ‘rural’, ‘railway’, ‘road’])
2021-04-05 20:55:32,220 model._logged_target(1642) INFO Execution finished
2021-04-05 20:55:32,221 utils.prepare_workspace(115) INFO Elapsed time: 0.06s

Hi @lisuxiao , it looks like you are using an old version of invest. The Habitat Quality changed a little bit since then. It looks like your CSVs are formatted for the new version, but you’re still running the old version. Can you please try the latest version? InVEST | Natural Capital Project

Thank you,

1 Like