Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wind Energy exception references incorrect dataset #1054

Closed
phargogh opened this issue Aug 18, 2022 · 0 comments · Fixed by #1357
Closed

Wind Energy exception references incorrect dataset #1054

phargogh opened this issue Aug 18, 2022 · 0 comments · Fixed by #1357
Assignees
Labels
bug Something isn't working in progress This issue is actively being worked on
Milestone

Comments

@phargogh
Copy link
Member

A user on the forums reported this exception:

2022-08-06 17:43:18,923 (natcap.invest.utils) utils.prepare_workspace(167) ERROR Exception while executing natcap.invest.wind_energy
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\wind_energy.py", line 1033, in execute
  File "taskgraph\Task.py", line 674, in add_task
  File "taskgraph\Task.py", line 1093, in _call
  File "natcap\invest\wind_energy.py", line 2413, in _clip_and_reproject_vector
  File "natcap\invest\wind_energy.py", line 2500, in _clip_vector_by_vector
ValueError: Clipping C:\Users\HarrisonSmith\OneDrive - Wave Hub Development Services Limited\Desktop\intermediate\val_grid_points_Testrun3.shp by C:\Users\HarrisonSmith\OneDrive - Wave Hub Development Services Limited\Desktop\intermediate\clip-reproject-nrbfrygl\reprojected_clip_vector.shp returned 0 features. If an AOI was provided this could mean the AOI and Wind Data do not intersect spatially.

It turns out, however that the issue was actually regarding the overlap of reprojected_clip_vector.shp and the Grid Points, not the Wind Turbine location points. So all of the Grid Points were outside of the AOI, causing this exception. It'd be nice to improve the exception message to reflect this.

@phargogh phargogh added the bug Something isn't working label Aug 18, 2022
@dcdenu4 dcdenu4 self-assigned this Apr 7, 2023
@dcdenu4 dcdenu4 added this to the 3.13.1 milestone Apr 7, 2023
@dcdenu4 dcdenu4 added the in progress This issue is actively being worked on label Aug 1, 2023
dcdenu4 added a commit to dcdenu4/invest that referenced this issue Aug 1, 2023
dcdenu4 added a commit to dcdenu4/invest that referenced this issue Aug 1, 2023
phargogh added a commit that referenced this issue Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress This issue is actively being worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants