SDR ValueError: Bounding boxes do not intersect

Good day researchers, i’m facing an error when execute invest sdr in a Brazilian watershed, i don’t know what kind of problem is this one, can someone help?

Which variables i can modify to fix this problem ? Thanks a lot.

Here’s invest error log

Best Wishes

2020-11-19 15:40:29,293 Task.add_task(641) ERROR Something went wrong when adding task align input rasters (0), terminating taskgraph.
Traceback (most recent call last):
File “site-packages\taskgraph\Task.py”, line 607, in add_task
File “site-packages\taskgraph\Task.py”, line 1071, in _call
File “site-packages\pygeoprocessing\geoprocessing.py”, line 698, in align_and_resize_raster_stack
File “site-packages\pygeoprocessing\geoprocessing.py”, line 3181, in merge_bounding_box_list
ValueError: Bounding boxes do not intersect. Base list: [[-55.054670309158325, -19.653608800436817, -53.29184949548659, -18.26817925742489], [703947.2437995224, 7822608.416305953, 892200.9841003647, 7979052.541576396], [703952.0489212618, 7822599.757177031, 892205.7555445489, 7979073.444794752], [703948.938071518, 7822596.048450897, 892202.5957082794, 7979069.695351746], [703961.9683850275, 7822610.926465942, 892186.0447125471, 7979054.990535052]] mode: intersection result: [703961.9683850275, 7822610.926465942, -53.29184949548659, -18.26817925742489]
2020-11-19 15:40:29,294 model._logged_target(1648) ERROR Exception while executing <function execute at 0x10CCAC00>
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\model.py”, line 1645, in _logged_target
File “site-packages\natcap\invest\sdr\sdr.py”, line 350, in execute
File “site-packages\taskgraph\Task.py”, line 607, in add_task
File “site-packages\taskgraph\Task.py”, line 1071, in _call
File “site-packages\pygeoprocessing\geoprocessing.py”, line 698, in align_and_resize_raster_stack
File “site-packages\pygeoprocessing\geoprocessing.py”, line 3181, in merge_bounding_box_list
ValueError: Bounding boxes do not intersect. Base list: [[-55.054670309158325, -19.653608800436817, -53.29184949548659, -18.26817925742489], [703947.2437995224, 7822608.416305953, 892200.9841003647, 7979052.541576396], [703952.0489212618, 7822599.757177031, 892205.7555445489, 7979073.444794752], [703948.938071518, 7822596.048450897, 892202.5957082794, 7979069.695351746], [703961.9683850275, 7822610.926465942, 892186.0447125471, 7979054.990535052]] mode: intersection result: [703961.9683850275, 7822610.926465942, -53.29184949548659, -18.26817925742489]
2020-11-19 15:40:29,295 model._logged_target(1651) INFO Execution finished
2020-11-19 15:40:29,296 utils.prepare_workspace(121) INFO Elapsed time: 0.21s

Hey @MuriloArima,

Thanks for posting and sorry for the SDR troubles. Could you take a look at your watershed, DEM, and LULC inputs in QGIS or ArcGIS to make sure that they overlap in space? It seems that some of the inputs might not overlap which is causing the error. Also, it would be helpful if you could attach your logfile as well as opposed to a copy paste of the error.

Thanks!

Doug

hi Doug, how are u mate?

i guess that everything is fine, because i use same shape to create WS, DEM e LULC, also the same linear reference, UTM 21S - any idea what could happened?

sure, here is log file InVEST-Sediment-Delivery-Ratio-Model-(SDR)-log-2020-11-19–15_38_09.txt (3.7 KB)

Hey @MuriloArima,

I see you’re using InVEST 3.8.0. We’ve made a lot of enhancements and bug fixes since then and are actually close to an InVEST 3.9 release. Could you try downloading and running this development version of InVEST?

https://storage.googleapis.com/releases.naturalcapitalproject.org/invest/3.8.9.post885%2Bg4cda085b/InVEST_3.8.9.post885%2Bg4cda085b_x64_Setup.exe

Could you also check that erodibility and erosivity raster files overlap with the others? It looks like one of these files might be in a WSG84 lat / long projection?

If nothing jumps out after trying the above, would you be willing to share your inputs? You could zip them up to Google Drive, Dropbox, etc, and either share a link here or to my email address at ddenu@stanford.edu.

Cheers,

Doug

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

hi doug, i’ve sent u in your email a link to my files because i couldn’t find the issue.

i hope u get it, thanks for u help

cheers

best regards.