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

nearestNeighbour bug #1

Open
MAfarrag opened this issue May 29, 2022 · 0 comments
Open

nearestNeighbour bug #1

MAfarrag opened this issue May 29, 2022 · 0 comments

Comments

@MAfarrag
Copy link
Member

Describe the bug
the MatchTwoRasters code gives an error in line 46.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to MatchTwoRasters.py code
  2. run the code line by line of the whole code at one
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
File "<ipython-input-5-dc2eb691f1ba>", line 1, in <cell line: 1> NewRasterB_ND = Raster.cropAlligned(src, NewRasterB) File "C:\MyComputer\01Algorithms\gis\pyramids\pyramids\raster.py", line 1100, in cropAlligned src_array = Raster.nearestNeighbour(src_array, mask_noval, rows, cols) File "C:\MyComputer\01Algorithms\gis\pyramids\pyramids\raster.py", line 1777, in nearestNeighbour if array[rows[i], cols[i] + 1] != nodatavalue and cols[i] + 1 <= no_cols: IndexError: index 93 is out of bounds for axis 1 with size 93

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant