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
SortGeoData doesn't work with BranchData #73
Comments
Hi Håkan, I get around this issue by sorting the different branches separately and then join the results manually. Still, you might run into problems if you also have irrigation source basins outside the HARO you want to sort (I ran into this issue on the Danube). |
Hi Håkan and Rene,
|
the function does not work properly if there are subbasins with the wrong HAROID in the geodata (then "some error" is vaguely printed on the screen). I wrote a function to identify such cases: checkHaroidConsistency <-function(gd = NULL,bd = NULL,outNum=-9999){
} |
I finally tried and found the bug. Turned out to be a logical error in the outlet SUBID identification. So I did not use @dgustafsson's code for now. I tested the solution with ArcticHYPE and SHYPE, both worked after GeoData shuffling and subsequent sorting with |
It seems lite SortGeoData gives wrong order when the sorting includes BranchData (for S-HYPE2016).
The text was updated successfully, but these errors were encountered: