Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. def getModel(pointFeature):
  2. args = pointFeature.toDictionary()
  3. lon = args.get('longitude')
  4. lat = args.get('latitude')
  5. point = ee.Geometry.Point([lon, lat])
  6. # Create image collection
  7. l8_collection = ee.ImageCollection(
  8. 'LANDSAT/LC08/C01/T1_SR').filterBounds(point).filterDate('2015-01-01', '2018-01-01')
  9. info = l8_collection.getRegion(point, 30).getInfo()
  10. header = info[0]
  11. data = np.array(info[1:])
  12. results = analysis_function(header, data)
  13. return ee.Feature(None, results)
  14.  
  15. Results = points.map(getModel)
  16.  
  17. ee.ee_exception.EEException: Failed to decode JSON.
  18. Error: Field 'value' of object '{"type":"ArgumentRef","value":null}' is missing or null.
  19. Object: {"type":"ArgumentRef","value":null}.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement