I am very new to the Google Earth Engine and found that it is a powerful tool in satellite images processing. I want to separate the land and water part in Sentinel-2 images and work only on the water part.
What should I do to solve this problem?
I am working with the image below:
var image= ee.Image('COPERNICUS/S2_SR/20210619T031541_20210619T032742_T48QYJ');
var visualization = {gain:'0.1,0.1,0.1',scale:5};
Map.addLayer(image,visualization,'1906');