Search code examples
javascriptpythongoogle-earth-engine

Google Earth Engine Python API, image .and(image2) function


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?


Solution

  • The equivalent statement is .And(image2), as noted here:

    enter image description here