TypeError: no supported conversion for types: (dtype('<U11'),)

Dear community,
Hello, this error is appearing when I run the urban flood risk model,I have attached the log file, and it appears that there is an issue with projections.

Thank you in advance.

06/17/2023 22:58:20 natcap.invest.validation INFO Starting whole-model validation with MODEL_SPEC
06/17/2023 22:58:20 pygeoprocessing.geoprocessing INFO 1 of 2 aligned: aligned_lulc_61701.tif
06/17/2023 22:58:20 pygeoprocessing.geoprocessing INFO 2 of 2 aligned: aligned_soils_hydrological_group_61701.tif
06/17/2023 22:58:20 pygeoprocessing.geoprocessing INFO aligned all 2 rasters.
06/17/2023 22:58:21 natcap.invest.utils WARNING Empty or NaN values were found in the table: H:\0507\shuju\Biophysical_water_ZJK.csv.
06/17/2023 22:58:21 natcap.invest.utils ERROR Exception while executing natcap.invest.urban_flood_risk_mitigation
Traceback (most recent call last):
File “scipy\sparse_base.py”, line 376, in asformat
File “scipy\sparse_coo.py”, line 403, in tocsr
File “scipy\sparse_sputils.py”, line 53, in upcast
TypeError: no supported conversion for types: (dtype(‘<U11’),)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “natcap\invest\utils.py”, line 164, in prepare_workspace
File “invest\cli.py”, line 469, in main
File “natcap\invest\urban_flood_risk_mitigation.py”, line 323, in execute
File “scipy\sparse_compressed.py”, line 52, in init
File “scipy\sparse_compressed.py”, line 33, in init
File “scipy\sparse_base.py”, line 378, in asformat
File “scipy\sparse_coo.py”, line 403, in tocsr
File “scipy\sparse_sputils.py”, line 53, in upcast
TypeError: no supported conversion for types: (dtype(‘<U11’),)
06/17/2023 22:58:21 natcap.invest.utils INFO Elapsed time: 0.57s
06/17/2023 22:58:21 natcap.invest.utils INFO Execution finished

Well that is a cryptic error! This looks like an issue with your curve number table. Could you attach the table here so we can debug this further?

Thanks,
James

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.