Created
September 4, 2021 10:47
-
-
Save PratyushTripathy/e6587d535d407a0c8a47db9819d745f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# binarise the array | |
arr_sb = (arr_sb == 1).astype(int) | |
# display the range of values | |
print('Min and max value of single band raster:', arr_sb.min(), arr_sb.max()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment