Hi,
I ran the coastal vulnerability model, and I was able to get some results and not some, one of the results I didn’t see was the coastal exposure. Was hoping I could discuss with anyone on the team about the results I got and the ones I couldn’t get.
Where are you looking for the exposure output and not finding it? Inside of the output coastal_exposure.gpkg there should be the layer main.coastal_exposure (if you’re using ArcGIS, otherwise the layer will be called coastal_exposure in QGIS), and the attribute table for main.coastal_exposure should include the field exposure (among others). Is this field not present in the output gpkg layer? Or is the field present but has no values?
It’s hard to see anything from the logfile you shared, unfortunately. It also looks like the logfile is incomplete… Is it possible you could share you data so we can try to reproduce what you’re seeing? A filing sharing service like Google Drive or Dropbox usually works well. You could post a link to share the data here or email to ddenu@stanford.edu.
Hi @Nomsy , I looked at your logfile as well and it appears the model just isn’t finished. That being said, there are a lot of warnings related to the geometry of the habitat layers. You might be able to speed things up considerably by fixing those issues.
It’s often the case that vector layers that were “vectorized” from a raster have these problems. If you happen to have rasters representing these habitats instead of vectors, you can use them directly in the model.
If you only have the vector layers, then you could try to “simplify” and/or “fix” their geometries using a GIS tool.
I would also recommend increasing the model_resolution to a much larger number while you troubleshoot these issues. Once you have those issues resolved, you can decrease the model_resolution again as needed.
So I noticed the model kinda runs “endlessly”, sometimes more than 5 or 6 hours and I have to shut down my laptop just to end it. Could it be the reason why it isn’t finished?
For the layers, I can’t input a raster layer into a vector layer, the model wouldn’t run. what do I do?
So am currently running the model, I increased the model resolution and it’s been running for a little over 6 hours now, when it’s done, I will check out the habitat layers again and the warnings.
So I noticed the model kinda runs “endlessly”, sometimes more than 5 or 6 hours and I have to shut down my laptop just to end it. Could it be the reason why it isn’t finished?
Oh interesting. It is hard to know why it is behaving this way, but I would start by dealing with the warnings coming from the habitat layers.
Nomsy:
For the layers, I can’t input a raster layer into a vector layer, the model wouldn’t run. what do I do?
That’s a good idea. Are you able to try either of the below options for the those habitat layers?
If not, you may share the offending habitat layers with me and I can take a look at them, but cannot guarantee that I can fix them. (Please zip all the component parts of the shapefile together and share a link to one zip file, thank you).
I removed all the other habitats except mangrove and wetland habitat.
That’s a good idea. Are you able to try either of the below options for the those habitat layers?
dave:
It’s often the case that vector layers that were “vectorized” from a raster have these problems. If you happen to have rasters representing these habitats instead of vectors, you can use them directly in the model.
If you only have the vector layers, then you could try to “simplify” and/or “fix” their geometries using a GIS tool.
If not, you may share the offending habitat layers with me and I can take a look at them, but cannot guarantee that I can fix them. (Please zip all the component parts of the shapefile together and share a link to one zip file, thank you).
I removed all the other habitats except mangrove and wetland habitat.
That’s a good idea. Are you able to try either of the below options for the those habitat layers?
dave:
It’s often the case that vector layers that were “vectorized” from a raster have these problems. If you happen to have rasters representing these habitats instead of vectors, you can use them directly in the model.
If you only have the vector layers, then you could try to “simplify” and/or “fix” their geometries using a GIS tool.
If not, you may share the offending habitat layers with me and I can take a look at them, but cannot guarantee that I can fix them. (Please zip all the component parts of the shapefile together and share a link to one zip file, thank you).