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

Habitat Quality error cannot convert string to float






Hi this is my error log file in Habitat Quality Model, what is my missing ?


Initializing...

Showing messages with level INFO and higher

03/12/2019 17:35:26 natcap.invest.utils INFO Writing log messages to X:\KKFC_Threat\Run\InVEST-Habitat-Quality-log-2019-03-12--17_35_25.txt

03/12/2019 17:35:26 natcap.invest.ui.usage._log_model WARNING an exception encountered when logging AttributeError("'NoneType' object has no attribute 'ExportToWkt'",)

03/12/2019 17:35:26 natcap.invest.ui.model Level 100 Starting model with parameters:

Arguments for InVEST natcap.invest.habitat_quality 3.5.0:

half_saturation_constant

landuse_cur_uri X:/KKFC_Threat/Threat_raster/Tiff/lu_recl2.tif

results_suffix R1

sensitivity_uri X:/KKFC_Threat/sensitivity_kkc.csv

threat_raster_folder X:\KKFC_Threat\Threat_raster\Tiff

threats_uri X:/KKFC_Threat/threats_kkc.csv

workspace_dir X:\KKFC_Threat\Run


03/12/2019 17:35:26 natcap.invest.ui.model ERROR Exception while executing <function execute at 0x13467770>

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\habitat_quality.py", line 100, in execute

ValueError: could not convert string to float:

03/12/2019 17:35:26 natcap.invest.ui.model INFO Execution finished

03/12/2019 17:35:26 natcap.invest.utils INFO Elapsed time: 0.05s

03/12/2019 17:35:26 natcap.invest.ui.execution ERROR Target <function _logged_target at 0x13467E70> failed with exception

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\execution.py", line 68, in run

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\habitat_quality.py", line 100, in execute

ValueError: could not convert string to float:

03/12/2019 17:35:26 natcap.invest.ui.execution INFO Execution finished


Tagged:

Comments

  • jdouglassjdouglass Administrator, NatCap Staff
    Hi @dhamma57, thanks for including your logfile!  Based on your inputs, it looks like the half-saturation constant (a required input) wasn't provided.  We'll fix this validation issue in an upcoming version of InVEST, but for the time being you can provide it in the UI and that should take care of this issue.

    James
  • Thank you. more question, How can I decide between linear or exponential for the DECAY in Threats data table  ?
  • jdouglassjdouglass Administrator, NatCap Staff
    @dhamma57, the type of decay depends on the threat itself and how it decays over space.  From the InVEST User's Guide:

    The impact of these two threat sources on habitat in the grid cell will
    partly depend on how quickly they decrease, or decay, over space. The
    user can choose either a linear or exponential distance-decay function
    to describe how a threat decays over space.

    So the decay that you choose should model the threat that you're observing or attempting to model.
Sign In or Register to comment.