Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // filter for year for GPP and NPP
  2. var GPPy = ee.Image(gppCollection.filter(ee.Filter.calendarRange(y, y, 'year')).sum());
  3. var NPPy = ee.Image(nppCollection.filter(ee.Filter.calendarRange(y, y, 'year')).mean());
  4. var npp8 = myimg.expression('(GGP8 / GPPy) * NPPy',
  5. {
  6. GGP8: myimg,
  7. GPPy: GPPy,
  8. NPPy: NPPy
  9. });
  10.  
  11. // multiply with scale factor
  12. npp8 = npp8.multiply(0.0001);
Add Comment
Please, Sign In to add comment