-
Notifications
You must be signed in to change notification settings - Fork 36
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
Wrong bounds on multi-band raster #26
Comments
Can you share this file? I'll try to take a look and solve this today. |
The file is quite big (200mb), but the issue does not appear when using a single-band raster. |
Ok. I am modifying the code so one can choose the band (at least in some parts), but it seems the main function used to load the data |
If you have a smaller file you can share so I can play with it, it would be useful. |
I resampled my file, it is now 32mb. |
I will close this and open an enhancement request for multiband rasters. |
I have a raster with 8 bands that I load via:
The data shape is (8, 3485, 3617).
The bounds I obtain via data.bounds is not correct because it does not use the correct shape size.
While
returns the correct value of -22.775128 instead of -22.462534226398855 and
geot[0]+geot[1]*shape[2]
returns the correct value of -48.709089 instead of -48.72194693862317.
Perhaps, the bounds method need to be modified as to be aware which axis corresponds to x and y and not to the band?
The text was updated successfully, but these errors were encountered: