-
Hi all. I'm currently trying to graph stacked bands, however, they're showing up blank. I get an error when I open the file. Could it be that I'm opening it wrong? Please see attached screenshots. |
Beta Was this translation helpful? Give feedback.
Answered by
giswqs
Oct 3, 2024
Replies: 2 comments 1 reply
-
Follow the example at https://geog-312.gishub.org/book/geospatial/rasterio.html#stacking-and-plotting-bands. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
giswqs
-
If you are still having challenges, I would suggest you normalize the bands(array). def normalize(array):
arr_min, arr_max = array.min(), array.max()
return (array - arr_min)/(arr_max - arr_min) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow the example at https://geog-312.gishub.org/book/geospatial/rasterio.html#stacking-and-plotting-bands.