Skip to content

Commit

Permalink
Merge pull request #1 from davethau/master
Browse files Browse the repository at this point in the history
Using SAD namespace
  • Loading branch information
javisantana committed Jan 9, 2012
2 parents 59230fd + 5394141 commit ef0d667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/application/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}))

4 changes: 2 additions & 2 deletions src/application/ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ef0d667

Please # to comment.