eemont.eeDictionary.__contains__

eemont.eeDictionary.__contains__(self, key)[source]

Returns True if the key is in the dictionary.

Parameters
  • self (ee.Dictionary) – Dictionary to check.

  • key (item) – Item to check.

Returns

Whether the key is contained in the dictionary.

Return type

boolean

Examples

>>> import ee, eemont
>>> ee.Authenticate()
>>> ee.Initialize()
>>> eeDict = ee.Dictionary({"a":1,"b":2,"h":4})
>>> "a" in eeDict
True
>>> "c" in eeDict
False