- Do you know how to solve this problem?
Hi @JCJC,
Please see this thread which solves the same error. Your threat rasters must all be located relative to the directory containing your threat table D:\habitat quality\
.
Thanks for your answer, but I canât solve this problem yet. All of my threat rasters locate relative to the directory containing my threat table D:\habitat quality.
Hi @JCJC -
One thing I want to verify is that you have edited the files âthreats_willamette.csvâ and âsensitivity_willamette.csvâ with your own values. I ask because those files still have the names of the sample data files (which are from the Willamette Valley, Oregon, U.S). My guess is that you used them as templates and just didnât change the file names, which is fine, but many people have gotten errors when theyâve tried to mix sample data with their own data.
~ Stacie
Thank you for answering my question. But I didnât try to mix sample data with myown data.I think there should be no problem with my data.
Could you please share your threats table?
Hi @JCJC ,
Thanks for sharing what your threats CSV looks like. From your screenshot of the model User Interface, the location of the threats CSV file is D:\habitat quality\
. From your screenshot of the threats CSV the CUR_PATH
column is showing absolute file paths to the threat rasters instead of relative paths. From the Users Guide:
InVEST will not prompt you for these rasters in the tool interface but will instead look for their filepaths in the Threats data table under the corresponding scenario columns. The paths should be relative to the Threats data table path.
So, instead of D:\ecology\data\manre_c.tif
in the CUR_PATH
column, you would want ..\ecology\data\manre_c.tif
. The ..
signifies âup one directory levelâ.
An easier approach might be to move your threat rasters from D:\ecology\data
to D:\habitat quality
. Then for CUR_PATH
you would have: manre_c.tif
.
It is a bit confusing, let us know if you still have questions.
The problem has already been settled. Thank you so much ďź
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.