You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before calculating indices you should convert the bands to float otherwise you will have many problems.
When calculating normalization, for instance, at the numerator you have band1-band2 but if you are using uint data type you are not allowed to use negative values and you will have a wrong computation (actually you have just a warning).
For instance, in the NDVI you get 1 for water areas, you should have values near to -1. If you do:
arr_st = arr_st.astype(float) you'll get a correct value.
The text was updated successfully, but these errors were encountered:
Hi Syamkakarla, I have a suggestion for you, in your notebook https://github.com/syamkakarla98/Satellite_Imagery_Analysis/blob/main/code/Sundarbans_Satellite_Imagery_Analysis_using_Python.ipynb
Before calculating indices you should convert the bands to float otherwise you will have many problems.
When calculating normalization, for instance, at the numerator you have band1-band2 but if you are using uint data type you are not allowed to use negative values and you will have a wrong computation (actually you have just a warning).
For instance, in the NDVI you get 1 for water areas, you should have values near to -1. If you do:
arr_st = arr_st.astype(float) you'll get a correct value.
The text was updated successfully, but these errors were encountered: