Skip to content

Commit

Permalink
landsat stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Lins committed Jan 25, 2012
1 parent 23f7497 commit cd8448a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/application/ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from earthengine.connector import EarthEngine

from time_utils import timestamp
from datetime import timedelta

METER2_TO_KM2 = 1.0/(1000*1000)

Expand Down Expand Up @@ -493,6 +494,9 @@ def _RGB_streched_command(self, period, polygon, sensor, bands):
"bands": bands
}
else:
three_months = timedelta(days=90)
work_period_end = self.work_period['end']
work_period_start = self.work_period['start'] - 7776000000#three_months
bands = "%d,%d,%d" % bands
return {
"image": json.dumps({
Expand All @@ -507,8 +511,8 @@ def _RGB_streched_command(self, period, polygon, sensor, bands):
"bands":[{"id":"30","data_type":"float"},
{"id":"20","data_type":"float"},
{"id":"10","data_type":"float"}],
"start_time":1313020801000,
"end_time":1313279999000}]
"start_time": work_period_start, #131302801000
"end_time": work_period_end }] #1313279999000
},polygon]
},
["30","20","10"],
Expand Down

0 comments on commit cd8448a

Please # to comment.