Skip to content

Commit

Permalink
Switching to a new date picker fusion table
Browse files Browse the repository at this point in the history
  • Loading branch information
davethau committed Dec 6, 2012
1 parent 54a4917 commit e74ed56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/application/ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,16 @@ def mapid2_cmd(self, asset_id, polygon=None, rows=5, cols=5):
previous = "%04d%02d" % (previous_year, previous_month)
start_filter = [{'property':'compounddate','greater_than':start},{'property':'compounddate','less_than':end}]
deforested_asset = self.paint_deforestation(asset_id, work_month, work_year)
# 1zqKClXoaHjUovWSydYDfOvwsrLVw-aNU4rh3wLc was 1868251
json_cmd = {"creator":CALL_SCOPE + "/com.google.earthengine.examples.sad.GetNDFIDelta","args": [
self.last_period['start'] - year_msec,
self.last_period['end'],
self.work_period['start'],
self.work_period['end'],
"MODIS/MOD09GA",
"MODIS/MOD09GQ",
{'type':'FeatureCollection','table_id': 1868251, 'mark': str(timestamp()), 'filter':start_filter},
{'type':'FeatureCollection','table_id': 1868251, 'mark': str(timestamp()),
{'type':'FeatureCollection','id': 'ft:1zqKClXoaHjUovWSydYDfOvwsrLVw-aNU4rh3wLc', 'mark': str(timestamp()), 'filter':start_filter},
{'type':'FeatureCollection','id': 'ft:1zqKClXoaHjUovWSydYDfOvwsrLVw-aNU4rh3wLc', 'mark': str(timestamp()),
'filter':[{"property":"month","equals":work_month},{"property":"year","equals":work_year}]},
{'type':'FeatureCollection','table_id': 4468280, 'mark': str(timestamp()),
'filter':[{"property":"Compounddate","equals":int(previous)}]},
Expand Down Expand Up @@ -607,7 +608,7 @@ def _MakeMosaic(self, period, long_span=0):
"creator": CALL_SCOPE + '/com.google.earthengine.examples.sad.MakeMosaic',
"args": [{"id":"MODIS/MOD09GA","version":micro_yesterday,"start_time":start_time,"end_time":period['end']},
{"id":"MODIS/MOD09GQ","version":micro_yesterday,"start_time":start_time,"end_time":period['end']},
{'type':'FeatureCollection','table_id':1868251,
{'type':'FeatureCollection','id':'ft:1zqKClXoaHjUovWSydYDfOvwsrLVw-aNU4rh3wLc',
'filter':filter}, start_time, period['end']]
}

Expand Down

0 comments on commit e74ed56

Please # to comment.