Comments (1)
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)
- Update `tasseledCap` docstrings HOT 1
- Extended methods for the ee.Image class cannot be thrown to map HOT 4
- Would it be nice to expose the s2cloudless algorithm to Sentinel-2 Level 1C data? HOT 1
- ee.Geometry.Point does not accept varargs after importing eemont HOT 4
- COPERNICUS/S2_HARMONIZED HOT 3
- MODIS/061/MOD09A1 HOT 4
- What visParams should i use for al lthe indices available in spectral indices? HOT 1
- index() function not working HOT 1
- getTimeSeriesByRegion returns empty and repeated dates in dataframe HOT 1
- MODIS/061/MOD09A1 HOT 2
- tasseled cap transformation for COPERNICUS/S2_SR HOT 1
- Pixel calculation after cloud masking HOT 3
- Support for computing indices for Sentinel-1 HOT 3
- "system:id" disappears following maskClouds() that subsequently leads to the error of scaleAndOffset() HOT 1
- some methods and modules do not work HOT 5
- getTimeSeriesByRegion returns repeated and empty dates in time series HOT 2
- preprocess() left quite a few cloud shaddow HOT 1
- Timeseries in Sentinel S1 Index HOT 11
- .preprocess() failed for the new COPERNICUS/S2_SR_HARMONIZED HOT 4
- Add HLSL30 Data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eemont.