Giter VIP home page Giter VIP logo

Comments (1)

davemlz avatar davemlz commented on August 25, 2024

Hi, @gaowudao!

In the expression of the formula you should use the method as a function itself. The correct form of the formula would be this:

'19.4260 + 9.2603 * (G / R) - 57.9165 * log(R) + 86.9934 * log(G) - 6.4577 * R - 17.6220 * log(B)'

Note that the log() function is not a method of the band :)

Let me know if it works!

Also, you must define the bands, short_name and type attributes to make it work correctly :)

PD: Another option (if you want) would be adding the index to the Awesome Spectral Indices and then computing it in eemont by setting online=True in the spectralIndices() method! :) Example below:

f1 = ee.Feature(ee.Geometry.Point([120.076432, 30.86733]).buffer(10),{'ID':'A'})

fc = ee.FeatureCollection([f1])

S2 = (ee.ImageCollection('COPERNICUS/S2_SR')
    .filterBounds(fc)
    .filterDate('2021-04-30','2021-08-30')
    .scaleAndOffset()
    .spectralIndices(['NDVI','GNDVI','EVI','WD'],online = True))

I'll close the issue with this comment, but please feel free to re-open it if required!

from eemont.

Related Issues (20)

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.