From 53941418e20d10d19c89343806ac066b01cdcfce Mon Sep 17 00:00:00 2001 From: Dave Thau Date: Thu, 5 Jan 2012 15:43:13 -0800 Subject: [PATCH] Switching all Earth Engine calls to use SAD namespace --- src/application/api.py | 4 ++-- src/application/ee.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/application/api.py b/src/application/api.py index aa560d8..856580f 100755 --- a/src/application/api.py +++ b/src/application/api.py @@ -179,6 +179,6 @@ def testing(): s = Stats() return jsonify(s._execute_cmd("/value", { "image": json.dumps({"creator":"SAD/com.google.earthengine.examples.sad.GetStatsList","args":[ - [{"creator":"sad_test/com.google.earthengine.examples.sad.ProdesImage","args":["PRODES_2009"]}, - {"creator":"sad_test/com.google.earthengine.examples.sad.ProdesImage","args":["PRODES_IMAZON_2011a"]}],{"type":"FeatureCollection","table_id":1505198},"name"]}), "fields": "classHistogram"})) + [{"creator":"SAD/com.google.earthengine.examples.sad.ProdesImage","args":["PRODES_2009"]}, + {"creator":"SAD/com.google.earthengine.examples.sad.ProdesImage","args":["PRODES_IMAZON_2011a"]}],{"type":"FeatureCollection","table_id":1505198},"name"]}), "fields": "classHistogram"})) diff --git a/src/application/ee.py b/src/application/ee.py index 440fabc..3004ef9 100755 --- a/src/application/ee.py +++ b/src/application/ee.py @@ -92,7 +92,7 @@ def get_stats_for_polygon(self, assetids, polygon): data = self._execute_cmd("/value", { "image": json.dumps({ - "creator":"sad_thau_test/com.google.earthengine.examples.sad.GetStatsList", + "creator": CALL_SCOPE + "/com.google.earthengine.examples.sad.GetStatsList", "args":[reports, { 'features': [{ 'type': 'feature', @@ -390,7 +390,7 @@ def _change_detection_data(self, reference_period, work_period, polygons=[], col ndfi_image_1 = self._NDFI_image(reference_period) ndfi_image_2 = self._NDFI_image(work_period) return { - "creator": 'sad_test/com.google.earthengine.examples.sad.ChangeDetectionData', + "creator": CALL_SCOPE + '/com.google.earthengine.examples.sad.ChangeDetectionData', "args": [ndfi_image_1, ndfi_image_2, self.PRODES_IMAGE,