I am a newbie and following the GEE tutorial at this link:
I do not understand the following line of code under the section of Mosaicking:
// Mask water with itself to mask all the zeros (non-water).
water = water.mask(water);
The water variable on the right hand side of the assignment is a mask that has value 1 for water and 0 for non-water.
Don't you get the exact same mask when applying it to itself? I am completely confused by the above statement.