• Methodology • GEE Code Availability • Example
Google Earth Engine (GEE) is a cloud-based platform that allows users to have an easy access to a petabyte-scale archive of remote sensing data and run geospatial analysis on Google's infrastructure.
The purpose of this code is to provide users with a function for calculating Net Primary Productivity (NPP). More information about the methodology can be accessed in the paper https://doi.org/10.1016/j.ecolmodel.2024.110636
The source code is available in this GitHub repository as well as in the GEE repository, where you can run the example code directly in the interface. To access the repository, use the following link:
https://code.earthengine.google.com/?accept_repo=users/luanabeckerdaluz/NPPalgorithm
The NPP processing can be executed by using two main functions. After obtaining the NDVI, LST, SOL, We collections and set the constants Topt and LUEmax, the NPP is computed for each set of images using the collectionNPP function. The first image of each collection is also used to exemplify the computation of only one NPP image by using the singleNPP function.
var imageNDVI = ee.Image(...)
var imageLST = ee.Image(...)
var imageSOL = ee.Image(...)
var imageWe = ee.Image(...)
var Topt = CONST
var LUEmax = CONST
// Import NPP processing module
var computeNPP = require('users/luanabeckerdaluz/NPPalgorithm:computeNPP')
// Compute NPP
var imageNPP = computeNPP.singleNPP(
imageNDVI,
imageLST,
imageSOL,
imageWe,
Topt,
LUEmax
)
var ROI = ee.Geometry(...)
var imageCollectionNDVI = ee.ImageCollection(...)
var imageCollectionLST = ee.ImageCollection(...)
var imageCollectionSOL = ee.ImageCollection(...)
var imageCollectionWe = ee.ImageCollection(...)
var Topt = CONST
var LUEmax = CONST
// Import NPP processing module
var computeNPP = require('users/luanabeckerdaluz/NPPalgorithm:computeNPP')
// Compute NPP
var imageCollectionNPP = computeNPP.collectionNPP(
imageCollectionNDVI,
imageCollectionLST,
imageCollectionSOL,
imageCollectionWe,
Topt,
LUEmax
)