Coastal Vulnerability model hangs with excessive gdal warnings

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.

Looking forward to hearing from someone.

Hi @Nomsy -

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?

~ Stacie

Hi @Stacie,

Yes, the field is not present in the output gpkg layer.

Nomsy

Chinomnso C. Onwubiko
PhD Candidate, World Bank Africa Centre of Excellence in Coastal Resilience(ACECoR)
+2347061162130

Can you post the log file related to that model run? There might be messages that indicate what’s going wrong.

~ Stacie

Y
Output_05022023.zip (6.5 MB)
Yes, I can

Hi @Nomsy,

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.

Thanks!

Doug

Hi @dcdenu4,

Please see the link below

Bare_Sparse_Vegetation_60 (1).prj - Google Drive, Built-up_50.sbx - Google Drive, Bare_Sparse_Vegetation_60.sbx - Google Drive, https://drive.google.com/file/d/10p53Oi9qL7CuTleAThwy25rQ0Vv65FQ_/view?usp=sharing, https://drive.google.com/file/d/11XQQdrpNR-LbYBRsyE1CjKMEiz8aDTzd/view?usp=sharing, https://drive.google.com/file/d/14HaDlgRchFUgkVcmCNfUth5b1X2gMIMR/view?usp=sharing, https://drive.google.com/file/d/14ZoUKOv2K63aYKAyrL_UPOoTUvkCxa59/view?usp=sharing, https://drive.google.com/file/d/153ilgWmo0LOE0Cj5kXJPvlYQ7yh6m1U9/view?usp=sharing, https://drive.google.com/file/d/15AAHBHgunJeDjzSaGlKhwTzvpxiSDDH4/view?usp=sharing, Built-up_50.sbn - Google Drive, https://drive.google.com/file/d/15Mx520XuoQYOmaeovp358OKKO8sn7uh0/view?usp=sharing, Bathymetry_R.S_UTM.tfw - Google Drive, AOI_R.S.prj - Google Drive, https://drive.google.com/file/d/16DPr_e9YoYJQi_vFwkVsN6WdrOrz0Iad/view?usp=sharing, https://drive.google.com/file/d/17RAhQKCI-uK5f9AqzuJBzDHVfA-A2VMK/view?usp=sharing, https://drive.google.com/file/d/17d6RRjSEBBDau1xx4a7zmIPNJEWrbvuo/view?usp=sharing, https://drive.google.com/file/d/1985XxbDD8ouj8yz8y7N2sNeVeJBAa9sY/view?usp=sharing, https://drive.google.com/file/d/19IgldRciPLX_OZS4iK6eSZ8eDwo0jdn8/view?usp=sharing, https://drive.google.com/file/d/19Jr-w1u5-oIhmzosuXztY37NYP3nKJGB/view?usp=sharing, https://drive.google.com/file/d/1AjdfUamarr9SU87dJkSA5SU4E5y1w59h/view?usp=sharing, Bare_Sparse_Vegetation_60.shx - Google Drive, https://drive.google.com/file/d/1B279sniEfMpDGLZBg5lRyAgj3_UKDe83/view?usp=sharing, Built-up_50.shp.CHINAZUM.22824.20012.sr.lock - Google Drive, https://drive.google.com/file/d/1Dq_32L9Pi4Qu-SzsE1ktVMEYCXo4xUXi/view?usp=sharing, https://drive.google.com/file/d/1DxObxWuQJSCsevqA6Cnc5aql3t3r1U7-/view?usp=sharing, Bathymetry_R.S_UTM.tif.xml - Google Drive, https://drive.google.com/file/d/1ELEzVQCGIJrU5xL4VkKsUEtfGzYmd7J6/view?usp=sharing, https://drive.google.com/file/d/1EnmwlFxKqRa0-29kzxF5ux1jtwKI5fNM/view?usp=sharing, https://drive.google.com/file/d/1F0hgrqPd0qGt1mONIrMd_7bjnVCjojzh/view?usp=sharing, Built-up_50.dbf - Google Drive, AOI_R.S.cpg - Google Drive, Bathymetry_R.S_UTM.tif.lyr - Google Drive, AOI_R.S.dbf - Google Drive, https://drive.google.com/file/d/1HO49dVde_HNNNL9GKAyURMsS1lIyC6_U/view?usp=sharing, https://drive.google.com/file/d/1HUjvGv-D4vGjUckD3MtuV0oNaMiviOO7/view?usp=sharing, CaostalHabitats_NomsyO.csv - Google Drive, https://drive.google.com/file/d/1J-GrIWddVxoDp6zfS-R_pzA-KNFMdaXn/view?usp=sharing, Bare_Sparse_Vegetation_60.prj - Google Drive, AOI_R.S.shp.CHINAZUM.24200.23356.sr.lock - Google Drive, https://drive.google.com/file/d/1KNWzmGZlavp_KU7QLZPTZ4eXE_-NfFbh/view?usp=sharing, https://drive.google.com/file/d/1LEna5qlLZwJCWhGxhfJL-IFuwOUmkCza/view?usp=sharing, Bathymetry_R.S_UTM.tif - Google Drive, https://drive.google.com/file/d/1Llo4lmsToysWxrvaCQsL0bremWuUHiBT/view?usp=sharing, https://drive.google.com/file/d/1MMVcEXdpqtKn3ZZeaXXLtb63izLt1k38/view?usp=sharing, https://drive.google.com/file/d/1NZWmyZDOFF82Ie7lob16t32_sC6gjMme/view?usp=sharing, https://drive.google.com/file/d/1NfFlJKwvgFRQf_6foTNz_HuP97gl9q0X/view?usp=sharing, https://drive.google.com/file/d/1NgNDRNpM5MhzLXybyaP1A0agZcvqC5P7/view?usp=sharing, https://drive.google.com/file/d/1NrLA5AXrsRXJtpKY1jPJYUugvrSQuaet/view?usp=sharing, https://drive.google.com/file/d/1O0xuoAH1ZTUy4sBfE1-A2khXz6MNYle7/view?usp=sharing, Bare_Sparse_Vegetation_60.shp - Google Drive, https://drive.google.com/file/d/1PKc3NyyGB0YhExZCoxRkqTtcONVKHn5M/view?usp=sharing, https://drive.google.com/file/d/1PggdwFVD3Y8fnTGQ3L0HRT5doMiVHG2C/view?usp=sharing, https://drive.google.com/file/d/1PiqS_i9YI2ksJtMGgy4uwgWLXLZ4Whek/view?usp=sharing, https://drive.google.com/file/d/1PmFWuj2UiXcD8TL-doLsAxtphQK1CrTk/view?usp=sharing, https://drive.google.com/file/d/1QK0RXKIhFm5NkaNPZ5dF0ULejIFvQHTD/view?usp=sharing, https://drive.google.com/file/d/1QX_84MwTabK5flAKLchdzm-R0E08FzrO/view?usp=sharing, https://drive.google.com/file/d/1Qh8RjTkNsoR8BQ_tvxdGVr97N99hMfdw/view?usp=sharing, https://drive.google.com/file/d/1SsXxywIirqz5RQuA8tyRrjveBHUvkV2U/view?usp=sharing, https://drive.google.com/file/d/1T2VtjkOqMEfwjmI_OHAh9Infp5Vy8LpB/view?usp=sharing, https://drive.google.com/file/d/1TclYY0YL-WQ8___Aic_puvCz4ZR_qR0E/view?usp=sharing, https://drive.google.com/file/d/1UptzHELSiBjBZpTvIGnAAW2_CuC5j9sM/view?usp=sharing, https://drive.google.com/file/d/1VBwL0PSdBdUbI_VwjL9hoiFwI72PQdZf/view?usp=sharing, https://drive.google.com/file/d/1ViJOX1uFYW9GnqJz654liNMgNWyWLU7f/view?usp=sharing, https://drive.google.com/file/d/1VyVAwoPI6PqBTWFij3AVSJhsX-0pX5sK/view?usp=sharing, https://drive.google.com/file/d/1W4JF6hIvhXgZq25X9C48OpEM0XIUAIYb/view?usp=sharing, https://drive.google.com/file/d/1WGzOyfhe2j5VerAj4oArAZx6L2UNNGWs/view?usp=sharing, https://drive.google.com/file/d/1WQJSNm0Pxg-2UxkSAbjsCsIy7VGUL3YN/view?usp=sharing, https://drive.google.com/file/d/1WRThseRYi0_-OXOOaTt5IsS6x3iV7vmN/view?usp=sharing, https://drive.google.com/file/d/1XJ01uXlYcROiJAN0Z2Kds0jtUd3ppN3j/view?usp=sharing, https://drive.google.com/file/d/1XSpdeYDaA0jP2ow9kXSgJPwV-FvRQ7M4/view?usp=sharing, https://drive.google.com/file/d/1Xifo_WnT2c3XJxgHMiIIBQOvUS3ZlXpX/view?usp=sharing, https://drive.google.com/file/d/1Xx_gQxCla3gYLprNOyA2sUOUfLaGuSDP/view?usp=sharing, https://drive.google.com/file/d/1YAchyrYfVduyEL-L3TvOuyDBfDaobv0B/view?usp=sharing, https://drive.google.com/file/d/1Ykzqo1XnDkJSzgIXuKcEwXM6c-GpOX73/view?usp=sharing, https://drive.google.com/file/d/1YyrPYucTfHZxdAQS4II6nFywQxqSQ4HP/view?usp=sharing, https://drive.google.com/file/d/1Z7EzP17lyysAbojp2a6aTIbYmqghlIsI/view?usp=sharing, https://drive.google.com/file/d/1ZRqa_mUc8MWbvqJWXctcrOz3Y_bNTPjI/view?usp=sharing, https://drive.google.com/file/d/1ZXwbPHfenvW_pJ-KxkKv97XRGqg4xM5R/view?usp=sharing, https://drive.google.com/file/d/1Z_xkP7ryXm5h-wirmx1XQzJDhd5-m8hU/view?usp=sharing, https://drive.google.com/file/d/1_GReUdcshjYfDTqa1KtqpdWuiKGrl-X4/view?usp=sharing, https://drive.google.com/file/d/1_NPBgVYgzcvr-eisy_mjIwkCpyMi3urT/view?usp=sharing, https://drive.google.com/file/d/1a7nWGfijGhcbPLCy1tVsk1QGKBAbqRes/view?usp=sharing, https://drive.google.com/file/d/1agX8S-pvnxahXOetCQrwYOaYFBVtRA7Z/view?usp=sharing, https://drive.google.com/file/d/1b722Er272i-9XyA49EIJaBdPc06T93d_/view?usp=sharing, https://drive.google.com/file/d/1bQBNAbwbBZ0HCaMwJBcw2qt8I5BRHV12/view?usp=sharing, https://drive.google.com/file/d/1beBDQQced_SrZncWOyoZdaZ8x_3TLZyU/view?usp=sharing, https://drive.google.com/file/d/1cI2rEHnx7c0PEkFUOqYFcutZebSflmTe/view?usp=sharing, https://drive.google.com/file/d/1cvSbUQXPZGRT9FMAZoJcUEUhlwJhyCSm/view?usp=sharing, https://drive.google.com/file/d/1dT8M7NA0lWwFrrZwx4Ta1BC2lbUBylY0/view?usp=sharing, https://drive.google.com/file/d/1fB9NF1E4K53H3fxs7ImXaPlRSITceR07/view?usp=sharing, https://drive.google.com/file/d/1fl6DWumSe2hMhx94aYNEbbAWngPhVTIs/view?usp=sharing, https://drive.google.com/file/d/1gETjTyEHY6jR7Kn7k3ZDrpGxj-IFcHJ3/view?usp=sharing, https://drive.google.com/file/d/1gUtCNDkUFW1rHw69szye3-Exep6m0J_n/view?usp=sharing, https://drive.google.com/file/d/1hE5wmnFRTEwTQvHpehY6YJtYZFrYsLNe/view?usp=sharing, https://drive.google.com/file/d/1hmn08Cls47yz5CQvXnq8slmPdiNQfgWQ/view?usp=sharing, https://drive.google.com/file/d/1i6H9aB54ia0GJ5ZoB8pttZeMOqMIwXgj/view?usp=sharing, https://drive.google.com/file/d/1j9Yjmsn1Aq4se5LqIkexltW-OHE-pTZv/view?usp=sharing, https://drive.google.com/file/d/1jXYIdlvLMqYus_UBRObArkyL34qPjVzZ/view?usp=sharing, https://drive.google.com/file/d/1kdVxZt4CYKJohEAA6CBnjBoCFrX1HENU/view?usp=sharing, https://drive.google.com/file/d/1lBiUy4FFUSHjznU0VSE7i5_1Jj_9nBpY/view?usp=sharing, https://drive.google.com/file/d/1nBtkqlImPF8pGnV5x2MqcWNG4y2AliK1/view?usp=sharing, https://drive.google.com/file/d/1nIbOnQ3OzW9h7lQL0orzPu06urfu365O/view?usp=sharing, https://drive.google.com/file/d/1nWhJpRZGHLOr_LVDiq6hPT19nM631xz_/view?usp=sharing, https://drive.google.com/file/d/1oM3pRCDUPxXZnY86AEb03T84nax_xept/view?usp=sharing, https://drive.google.com/file/d/1opAsraX4a9jqx3wtN5-_TpOrVIcBNBPW/view?usp=sharing, https://drive.google.com/file/d/1pEeV4ipDpo9eUTwrdUMYBaBbnjLUpkyW/view?usp=sharing, https://drive.google.com/file/d/1q4MNwtY7MB5k1Zccq1YfbPkA5LghXjxr/view?usp=sharing, https://drive.google.com/file/d/1rAnmAd54BkyogpTUcsqVVYVvrbhZdisn/view?usp=sharing, https://drive.google.com/file/d/1rc53No47OQxOBmzd5oKBi0GFRgQcxFse/view?usp=sharing, https://drive.google.com/file/d/1rflgbx-ZhX7IdZlVK9uHF0TaCqa-nnY9/view?usp=sharing, https://drive.google.com/file/d/1s0ANQ9V8dfQK7DCgb9Jsucu2PvaIaFSU/view?usp=sharing, https://drive.google.com/file/d/1s2cnjriDzpvAyZkqaVkHzwd6-c-caeBR/view?usp=sharing, https://drive.google.com/file/d/1tRqL0FaMO85K0dJtjBl3iiDnFG7ZHiLo/view?usp=sharing, https://drive.google.com/file/d/1tnj6gFxz_zV0V-MjP6ZUhoiVfPlHE7t1/view?usp=sharing, https://drive.google.com/file/d/1wASHQN0_y_Fi1dxUdsEywrtjZJQlsPys/view?usp=sharing, https://drive.google.com/file/d/1xTb1lMTSLzlFVZms8pXS3tARe62OGcJu/view?usp=sharing, https://drive.google.com/file/d/1xeUDNNjR-XXCCNBmiY2qxy6fuXEUUczv/view?usp=sharing, https://drive.google.com/file/d/1y-Z1Cw7OwjcTbun0VfdKGDAmnFQuZ82F/view?usp=sharing, https://drive.google.com/file/d/1y5a5hfuSL0tQ2WYKcGU3zqYoE0GEmi9U/view?usp=sharing, https://drive.google.com/file/d/1zm7msgLchmxtJx8U-4nnP59kUhhvuL3K/view?usp=sharing

Hi @dcdenu4,

I also sent to your email. I’m sorry I sent them in bits.

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.

Good luck!

1 Like

Hi @dave

Thanks for responding.

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?

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.

Starting in version 3.10, this model accepts raster for the habitat layers. You may enter the path to the raster in the Habitats CSV Table. http://releases.naturalcapitalproject.org/invest-userguide/latest/coastal_vulnerability.html#data-needs

If that is not working, please update us with a new logfile or the error from the user-interface so we can see what goes wrong!

Also, for whatever you try next,

1 Like

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.

Hi @dave,

So, the model ran all through the night and when I checked the results, it was still the same as before.

| dave
February 14 |

  • | - |

Nomsy:

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?

Starting in version 3.10, this model accepts raster for the habitat layers. You may enter the path to the raster in the Habitats CSV Table. Coastal Vulnerability Model — InVEST documentation

If that is not working, please update us with a new logfile or the error from the user-interface so we can see what goes wrong!

Also, for whatever you try next,

Did you try anything new with the habitats?

Yes, I did.

I removed every other habitat except for mangroves and wetlands.

Yes, I did.

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?

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 didn’t have to convert from raster to vector. The data was downloaded from the European Satellite Agency (ESA) website.

I don’t know how to “simplify” and/or “fix” their geometries using a GIS tool.

Okay, I will zip and share a link to one zip file with you.

| dave
February 17 |

  • | - |

Nomsy:

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).

Hi Dave,

Kindly see the link to the habitats attached below, I named it “zipped”:

https://drive.google.com/drive/folders/1Akfm4tLv-pwDsk8gTf748EYy9-1GPFIo?usp=sharing

I didn’t have to convert from raster to vector. The data was downloaded from the European Satellite Agency (ESA) website.

I don’t know how to “simplify” and/or “fix” their geometries using a GIS tool.

Okay, I will zip and share a link to one zip file with you.

| dave
February 17 |

  • | - |

Nomsy:

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).