{"action":"closed","issue":{"url":"https://api.github.com/repos/Google-Drought/WebInterface/issues/47","labels_url":"https://api.github.com/repos/Google-Drought/WebInterface/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Google-Drought/WebInterface/issues/47/comments","events_url":"https://api.github.com/repos/Google-Drought/WebInterface/issues/47/events","html_url":"https://github.com/Google-Drought/WebInterface/issues/47","id":55691136,"number":47,"title":"landsat data source needs to be changed","user":{"login":"khegewisch","id":7798273,"avatar_url":"https://avatars.githubusercontent.com/u/7798273?v=3","gravatar_id":"","url":"https://api.github.com/users/khegewisch","html_url":"https://github.com/khegewisch","followers_url":"https://api.github.com/users/khegewisch/followers","following_url":"https://api.github.com/users/khegewisch/following{/other_user}","gists_url":"https://api.github.com/users/khegewisch/gists{/gist_id}","starred_url":"https://api.github.com/users/khegewisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khegewisch/subscriptions","organizations_url":"https://api.github.com/users/khegewisch/orgs","repos_url":"https://api.github.com/users/khegewisch/repos","events_url":"https://api.github.com/users/khegewisch/events{/privacy}","received_events_url":"https://api.github.com/users/khegewisch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Google-Drought/WebInterface/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"khegewisch","id":7798273,"avatar_url":"https://avatars.githubusercontent.com/u/7798273?v=3","gravatar_id":"","url":"https://api.github.com/users/khegewisch","html_url":"https://github.com/khegewisch","followers_url":"https://api.github.com/users/khegewisch/followers","following_url":"https://api.github.com/users/khegewisch/following{/other_user}","gists_url":"https://api.github.com/users/khegewisch/gists{/gist_id}","starred_url":"https://api.github.com/users/khegewisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khegewisch/subscriptions","organizations_url":"https://api.github.com/users/khegewisch/orgs","repos_url":"https://api.github.com/users/khegewisch/repos","events_url":"https://api.github.com/users/khegewisch/events{/privacy}","received_events_url":"https://api.github.com/users/khegewisch/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Google-Drought/WebInterface/milestones/1","labels_url":"https://api.github.com/repos/Google-Drought/WebInterface/milestones/1/labels","id":964184,"number":1,"title":"Load better Landsat Data","description":"Load in the daily landsat data and apply cloud mask. \r\n\r\nApparently changing from 8-day to daily will fix the \r\nLandsat anomaly error we get: \r\n*Landsat anomaly option is not working.  It says \"Images must contain the same number of bands or only 1 band.\"  This could be due to the fact there are not the same number of images in any set of date ranges?  Landsat is every 16 days, but 8 when combined with multiple Landsats.. L8 w/ L7, L7 w/ L5, etc.. also where there are path overlaps, the return interval is smaller than 16 days as well.... ","creator":{"login":"khegewisch","id":7798273,"avatar_url":"https://avatars.githubusercontent.com/u/7798273?v=3","gravatar_id":"","url":"https://api.github.com/users/khegewisch","html_url":"https://github.com/khegewisch","followers_url":"https://api.github.com/users/khegewisch/followers","following_url":"https://api.github.com/users/khegewisch/following{/other_user}","gists_url":"https://api.github.com/users/khegewisch/gists{/gist_id}","starred_url":"https://api.github.com/users/khegewisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khegewisch/subscriptions","organizations_url":"https://api.github.com/users/khegewisch/orgs","repos_url":"https://api.github.com/users/khegewisch/repos","events_url":"https://api.github.com/users/khegewisch/events{/privacy}","received_events_url":"https://api.github.com/users/khegewisch/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":3,"state":"open","created_at":"2015-02-03T19:34:28Z","updated_at":"2015-02-09T17:54:34Z","due_on":"2015-02-10T08:00:00Z","closed_at":null},"comments":1,"created_at":"2015-01-27T23:28:00Z","updated_at":"2015-02-09T17:54:34Z","closed_at":"2015-02-09T17:54:34Z","body":"Charles suggested \r\n1) we remove Landsat 8 from our merging because it's bands are different than 4/5/7 and so values of NDVI are not comparable\r\n2) instead of using 8-day composites, we use daily data and apply a cloud mask. \r\nThis is different for our current system, so here was the suggested change in collection_methods.get_collection(): \r\nvar landsat5_coll = ee.ImageCollection('LT5_L1T_TOA');\r\n\r\n//Calculate NDVI and apply the basic ACCA cloud mask\r\nfunction landsat457_ndvi_func (refl_toa_image) {\r\n  var cloud_mask = ee.Algorithms.Landsat.simpleCloudScore(refl_toa_image)\r\n    .select(['cloud']).lt(ee.Image.constant(50));\r\n  refl_toa_image = refl_toa_image.mask(cloud_mask.mask(cloud_mask));\r\n  return refl_toa_image.normalizedDifference([\"B4\",\"B3\"])\r\n    .clamp(-0.1,1).select([0], ['NDVI']); }\r\nvar landsat5_ndvi_coll = landsat5_coll.map(landsat457_ndvi_func);\r\n\r\n "}}