MOOC, Coastal Vulnerability

I’m a new learner, and I can’t find the Sea Level Rise (vector) file in samples files. When I try to run the model, it won’t complete, although it’s opcional. Where can I find the missing file, please?

Hi @fcarvalho, and welcome to the forum!

You’re correct that we don’t provide a sea level rise layer in the sample data. But the model should run fine without it. If the model won’t complete, please post the entire log file (.txt file) that’s created in your Workspace, so we can see the error and your inputs and hopefully understand what’s going wrong.

~ Stacie

08/31/2022 13:46:26 natcap.invest.utils Level 100 Writing log messages to [C:\Users\bapti\OneDrive\�rea de Trabalho\Ambiente-Agro\CV\InVEST-natcap.invest.coastal_vulnerability-log-2022-08-31–13_46_26.txt]
08/31/2022 13:46:26 main Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.coastal_vulnerability 3.11.0:
aoi_vector_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\aoi_grandbahama_utm.shp
bathymetry_raster_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\bathymetry.tif
dem_averaging_radius 900
dem_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\dem_srtm_grandbahama.tif
geomorphology_fill_value 3
geomorphology_vector_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\geomorphology_grandbahama.shp
habitat_table_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\GrandBahama_Habitats\Natural_Habitats.csv
landmass_vector_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\landmass_polygon.shp
max_fetch_distance 1500
model_resolution 1000
n_workers -1
population_radius 500
population_raster_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\population_grandbahama.tif
results_suffix GB
shelf_contour_vector_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\continental_shelf_polyline_global.shp
slr_vector_path
workspace_dir C:\Users\bapti\OneDrive\�rea de Trabalho\Ambiente-Agro\CV
wwiii_vector_path C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\WaveWatchIII_global.shp

08/31/2022 13:46:26 natcap.invest.coastal_vulnerability INFO Validating arguments
08/31/2022 13:46:26 natcap.invest.validation INFO Starting whole-model validation with ARGS_SPEC
08/31/2022 13:46:29 pygeoprocessing.geoprocessing INFO starting reprojection
08/31/2022 13:46:29 pygeoprocessing.geoprocessing INFO reprojection 100.0% complete on clipped_projected_landmass_GB.gpkg
08/31/2022 13:46:29 natcap.invest.coastal_vulnerability INFO Masking positive values from bathymetry
08/31/2022 13:46:30 natcap.invest.coastal_vulnerability WARNING C:\Users\bapti\OneDrive\Documentos\InVEST\CoastalVulnerability\bathymetry.tif is unprojected and will be warped to match the AOI and resampled to a pixel size of 1000.0 meters
08/31/2022 13:46:30 pygeoprocessing.geoprocessing INFO starting stats_worker
08/31/2022 13:46:30 pygeoprocessing.geoprocessing INFO started stats_worker
08/31/2022 13:46:30 pygeoprocessing.geoprocessing INFO 100.0% complete
08/31/2022 13:46:30 pygeoprocessing.geoprocessing INFO Waiting for raster stats worker result.
08/31/2022 13:46:30 natcap.invest.coastal_vulnerability INFO preparing landmass geometry and interpolating shore points
08/31/2022 13:46:30 taskgraph.Task ERROR Something went wrong when adding task index landmass geometry and interpolate shore points (2), terminating taskgraph.
Traceback (most recent call last):
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “natcap\invest\coastal_vulnerability.py”, line 740, in prepare_landmass_line_index_and_interpolate_shore_points
File “rtree\index.py”, line 284, in init
File “rtree\index.py”, line 1411, in init
File “rtree\core.py”, line 23, in check_void
rtree.exceptions.RTreeError: Error in “Index_Create”: Spatial Index Error: IllegalArgumentException: SpatialIndex::DiskStorageManager: Index/Data file cannot be created.
08/31/2022 13:46:30 natcap.invest.utils ERROR Exception while executing natcap.invest.coastal_vulnerability
Traceback (most recent call last):
File “natcap\invest\utils.py”, line 165, in prepare_workspace
File “natcap\invest\cli.py”, line 486, in main
File “natcap\invest\coastal_vulnerability.py”, line 476, in execute
File “taskgraph\Task.py”, line 674, in add_task
File “taskgraph\Task.py”, line 1093, in _call
File “natcap\invest\coastal_vulnerability.py”, line 740, in prepare_landmass_line_index_and_interpolate_shore_points
File “rtree\index.py”, line 284, in init
File “rtree\index.py”, line 1411, in init
File “rtree\core.py”, line 23, in check_void
rtree.exceptions.RTreeError: Error in “Index_Create”: Spatial Index Error: IllegalArgumentException: SpatialIndex::DiskStorageManager: Index/Data file cannot be created.
08/31/2022 13:46:30 natcap.invest.utils INFO Elapsed time: 4.16s
08/31/2022 13:46:30 natcap.invest.utils INFO Execution finished

Hi @fcarvalho,

Have you had any luck on this issue? Would you mind attaching the logfile that you copied from above?

~ Doug