Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. var startYear = 2018;
  2. var endYear = 2019;
  3. print(countries)
  4. for(var i=0;i<countries.size().getInfo();i++){
  5. var startMonth =countries.filter(ee.Filter.eq('startMonth',i));
  6. for(var j=0;j<countries.size().getInfo();j++){
  7. var startDay = countries.filter(ee.Filter.eq('startDay',j));
  8. var start = ee.Date.fromYMD(startYear, startMonth,startDay);
  9.  
  10. }
  11. }
  12. for(var i=0;i<countries.size().getInfo();i++){
  13. var endMonth =countries.filter(ee.Filter.eq('endMonth',i));
  14. for(var j=0;j<countries.size().getInfo();j++){
  15. var endDay = countries.filter(ee.Filter.eq('endDay',j));
  16. var end = ee.Date.fromYMD(endYear, endMonth, endDay);
  17. //print(typeof endMonth)
  18. }
  19. }
  20. print(typeof startDay)
  21. print(start)
  22. print(end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement