Using the .and(image2)
in python gives an 'invalid syntax' error because it confuses it with the boolean operator that returns a boolean. Whereas in earth engine JavaScript, ee.Image.and(image2) returns an ee.Image. What is the Python equivalent for this .and operator?
The equivalent statement is .And(image2)
, as noted here: