Wave energy model: error "FileNotFoundError: [Errno 2] No such file or directory"

I am trying to run the wave energy model for the area of the West Coast using the sample data and when I run the model I receive the output that I attached.
My main question is, which kind of input data should I modify?

Also, for the bathymetry, I downloaded a file from this website, named “Download GEBCO 2021 derived raster classification”

Do you think that this kind of map is relevant for an analysis of the West Coast, or do you suggest any other sources?

Thank you so much and I hope to hear from you soon,

Attach the logfile here:

InVEST-natcap.invest.wave_energy-log-2023-01-07–18_33_45.txt (2.5 KB)

Hi @tommaso_malavasi9,

Welcome to the forum and thanks for posting!

It looks like the error is related to the Wave Base Data directory input. The model is looking for a file ...\WaveEnergy\input\NAmerica_WestCoast_4m.txt.bin in that location but cannot find it. Your logfile indicates the input to Wave Base Data is the input directory (thank you for attaching your log by the way). If you’re using the sample data, then there should be a WaveData directory in input. This is what you’d want to enter for a directory path. So Wave Base Data would be ..\WaveEnergy\input\WaveData.

I haven’t downloaded data from the site you linked but GEBCO data seems like a valid data source to me! Their website has some options for global downloads as well as a tool for downloading in specific areas. https://www.gebco.net/data_and_products/gridded_bathymetry_data/

We also provide a global DEM in our sample data that can be used as well. At the very least to get sample data running, though it might be coarser than GEBCO or other local data. The link to that data download is: https://storage.googleapis.com/releases.naturalcapitalproject.org/invest/3.12.1/data/Base_Data.zip.


~ Doug

Hi @dcdenu4,

Thank you so much for your clarification,
and sorrry for the delay in the response,
now the model can be run properly.

I only have one more question:
do you have any suggestions about some sources to find a file for bathymetry, specifically about Northen California area?

Thank you so much again,

Hi @tommaso_malavasi9,

I don’t have any suggestions off the top of my head, I’d probably head to Google and start searching.

I wonder if @jesseG or @swolny would have some resources they would know of.

~ Doug

@tommaso_malavasi9 have you tried the suggestions given in the Data Source Appendix in the User Guide? The only one I’ve used is GEBCO, for the Coastal Vulnerability model, but I don’t know enough about those datasets to know if one is better than the other. Perhaps try NOAA since you’re working in California?

~ Stacie