I am currently working with the Coastal Vulnerability model and I am encountering an issue with shore points missing values. I am getting the following error message in the model log:
02/17/2025 13:28:16 natcap.invest.coastal_vulnerability WARNING 16 shore points are missing values after aggregating …/Data (processed, 1984-48N)/CVI_output/intermediate/relief/positive_dem_test.tif. No valid pixels were found within the search radius (900.0 meters) around these points.
I have made sure that all my layers are in the same coordinate system and I have checked another topic on this forum with the same issue. However, I cannot seem to figure out how to solve this issue. Is there anyone who can help me with this please?
If you look at the resulting point vector (coastal_exposure.gpkg) in GIS, you should be able to find the points that have a value of <null> for R_relief. Look at these points along with the DEM layer. It’s likely the case that the points with missing data are further than 900m from the nearest DEM pixel. If so, then then the easiest thing to do is increase the Elevation Averaging Radius input to something larger than 900. You can also consider adjusting the input landmass vector or DEM so that they are more closely overlapping.
Thank you for your response! I ended up adjusting all negative values to a value of 1 and that worked to get the model running. I am now just wondering if this has any important consequences for my results.
Thanks!
Where are there negative values that you adjusted to 1? Are these DEM values or something else? If the DEM has negative values, the User Guide says that the model converts them to 0 before calculating the average elevation.
As for whether that will have important consequences, remember that all of the values are relative in this model. So if the elevation value remains within the lowest percentile of elevation values (0-20%), then R_relief should still be 5, which would not change the overall exposure rank. It’s only if the value changes the R_relief rank that it will have an effect on the resulting exposure.