eemont.eeDictionary.__getitem__
- eemont.eeDictionary.__getitem__(self, key)[source]
Gets the item of the dictionary according to the specified key.
- Parameters
self (ee.Dictionary) – Dictionary to get the items from.
key (str) – Key used to get the specified item. It gets the value of the specified key.
- Returns
Selected value.
- Return type
ee.Element
Examples
>>> import ee, eemont >>> ee.Authenticate() >>> ee.Initialize() >>> eeDict = ee.Dictionary({"a":1,"b":2,"h":4}) >>> eeDict["a"].getInfo() 1 >>> eeDict["h"].getInfo() 4