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

Add name check for basin id field #8

Merged
merged 2 commits into from
Jun 2, 2022
Merged

Conversation

kratzert
Copy link
Owner

@kratzert kratzert commented Jun 1, 2022

See #7, the problem was that the intersected polygons contains the fields/values of both shapefiles. In this case, the basin id field was present in the user shape file but also HydroATLAS (HYBAS_ID). This led to the problem that one intersected polygon had a HYBAS_ID that is not part of the basin_ids list (which only contains the basins between the thresholds).

In this PR I am adding a check that makes sure that the user specified BASIN_ID_FIELD is different to any HydroATLAS field.

@kratzert kratzert added the enhancement New feature or request label Jun 1, 2022
@kratzert kratzert requested a review from gauchm June 1, 2022 21:07
@kratzert
Copy link
Owner Author

kratzert commented Jun 1, 2022

Also update the Wiki to include this information.

@kratzert kratzert merged commit 544692d into main Jun 2, 2022
@gauchm gauchm deleted the add-basin-id-name-check branch June 2, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants