Open HeikkiVesanto opened 6 years ago
Thanks for reporting this bug. I have managed to reproduce your issue. It appears that there is a bug in the parent/child relationships for some cells in the hexagonal gridding system. This has the knock-on effect of generating more sibling cells than there should be and there is an invalid index when referencing the array of siblings. This problem is specific to the hexagonal gridding system of ISEA3H. For now you could use ISEA4T if that suits your purposes. We will aim to include a fix for this bug in the next round of development.
Thanks for the response and the library, very useful.
No rush on the fix, I can work around it by using children from a higher level instead of siblings from the same.
Glad you like the library. Just be aware that this bug is caused by a problem getting child cells of a parent in ISEA3H. It only affects some cells but as you can see in the attached image, getting the child cells for cell 02070,-1 is producing incorrect children. As I said, this is specific to the hexagonal gridding - the triangular gridding of ISEA4T should work fine.
Good to know. That does explain some of the results I have experienced. Thanks.
Working with python2.7 I am getting an index error with get_dggs_cell_siblings()
Results in: Process finished with exit code -1073741819 (0xC0000005)
Looks like it is Cell ID 02081,-3 that fails.
Full script that reproduces the error:
Results in: