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

allow international wind #561

Merged
merged 1 commit into from
Feb 1, 2024
Merged

allow international wind #561

merged 1 commit into from
Feb 1, 2024

Conversation

adfarth
Copy link
Collaborator

@adfarth adfarth commented Jan 30, 2024

Please check if the PR fulfills these requirements

  • CHANGELOG.md is updated
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

(Bug fix, feature, docs update, ...)
You previously could not run a Wind eval for a location outside of the WindToolkit bounds (e.g. international locations), due to the Wind validation code. This PR fixes this.

Other information:

  • I also updated the REopt.jl version in the meta data of the ERP code

@adfarth adfarth changed the title fix wind, update reopt version in erp allow international wind Jan 30, 2024
@@ -663,5 +663,5 @@ def lat_lon_in_windtoolkit(lat, lon):
y = int(round((point[1] - origin[1]) / 2000))
y_max, x_max = (1602, 2976)
if (x < 0) or (y < 0) or (x >= x_max) or (y >= y_max):
raise ValueError("Latitude/Longitude is outside of wind resource dataset bounds.")
return None
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By returning None the validation_error will be included in the output

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the new behavior is to try and get wind resource data for any provided inputs. Sites which are truly beyond the international dataset will get a validation error from REopt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sites beyond the international dataset that also do not provide production_factor_series will get an error (before all international sites did). See change to line 291

@adfarth adfarth requested review from rathod-b and removed request for Bill-Becker January 31, 2024 20:39
@adfarth adfarth merged commit b18b65f into develop Feb 1, 2024
2 checks passed
@adfarth adfarth deleted the intl-wind branch February 1, 2024 23:01
@adfarth adfarth mentioned this pull request Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants