Skip to content
Snippets Groups Projects
Commit f3a3b30d authored by TGermain's avatar TGermain
Browse files

evi formula adjustment

parent 6079b1b9
No related branches found
No related tags found
No related merge requests found
Pipeline #1240 passed
......@@ -573,7 +573,7 @@ def create_raw_evi(
np.seterr(
divide="ignore", invalid="ignore"
) # ignore warnings when dividing by zero
evi = (2.5 * ((nir - red)) / ((nir + 6.0 * red- 7.5 * blue)+ 1)*1000).astype(np.int32)
evi = 2.5 * ((nir/10000 - red/10000)) / ((nir/10000 + 6.0 * red/10000- 7.5 * blue/10000)+ 1).astype(np.int32)
evi_masked = np.where(red != 0, evi, 32767)
red_profile.update(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment