Code Monkey home page Code Monkey logo

nppalgorithm's Introduction

NPP algorithm

Google Earth Engine function to compute Net Primary Productivity (NPP)

Project Status: Active – The project has reached a stable, usable
state and is being actively
developed. License lifecycle

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.

Methodology

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

Google Earth Engine Code Availability

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

Example

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.

singleNPP

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
)

collectionNPP

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
)

nppalgorithm's People

Contributors

luanabeckerdaluz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

nppalgorithm's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.