Binarisation water index

Hello im working on sentinel 2 extracting water by using ndwi index i want to do binarisation with atomatic suit threshold on snap by otsu method
Help me