Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evi process added #84

Merged
merged 7 commits into from
Jan 21, 2024
Merged

Evi process added #84

merged 7 commits into from
Jan 21, 2024

Conversation

kwundram2602
Copy link
Contributor

I added an evi process.
I followed the equation on https://custom-scripts.sentinel-hub.com/custom-scripts/sentinel-2/evi/

PondiB and others added 6 commits January 15, 2024 10:55
P1M load collection, cloud cover <40
 refactor ndvi process
ndvi refine
refactor load collection function
bug fix load collection
@PondiB PondiB self-requested a review January 20, 2024 09:31
Copy link
Owner

@PondiB PondiB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Did you test out the functionality @kwundram2602 ?

@kwundram2602
Copy link
Contributor Author

When I tested the function I got this result: @PondiB. But I did not do any further tests.
EVI calculated ....
{
"band_names": [
"EVI"
],
"cube_type": "apply_pixel",
"expr": [
"2.5*((b08-b04)/(b08+6b06-7.5b02)+1)"
],
"in_cube": {
"chunk_size": [
1,
320,
320
],
"cube_type": "image_collection",
"file": "C:\Users\kjell\AppData\Local\Temp\RtmpGKKcLu\file55284a376744.sqlite",
"view": {
"aggregation": "median",
"resampling": "average",
"space": {
"bottom": 6788888.0500000007,
"left": 840173.14999999991,
"nx": 427,
"ny": 361,
"right": 852983.14999999991,
"srs": "EPSG:3857",
"top": 6799718.0500000007
},
"time": {
"dt": "P15D",
"t0": "2022-01-01",
"t1": "2023-01-10"
}
}
},
"keep_bands": false
}

@PondiB
Copy link
Owner

PondiB commented Jan 20, 2024

"2.5*((b08-b04)/(b08+6_b06-7.5_b02)+1)"

Cool @kwundram2602 , then you can make a slight modification on the brackets so that this output should be :
"2.5*(b08-b04)/(b08+6b06-7.5b02)+1)"
as it seems the formula is being messed up as these "%s follow each other" one solution might be more bracketing of such scenarios
i.e. 6
(%s) ...
so an output like this should be similar to evi formula:
2.5*(b08-b04)/(b08+6*(b06)-7.5*(b02))+1)

@kwundram2602
Copy link
Contributor Author

Do you mean like this : ? @PondiB
"expr": [
"2.5*((b08-b04)/(b08+6*(b06)-7.5*(b02))+1)"

@PondiB
Copy link
Owner

PondiB commented Jan 21, 2024

Do you mean like this : ? @PondiB
"expr": [
"2.5*((b08-b04)/(b08+6*(b06)-7.5*(b02))+1)"
Yes @kwundram2602 , Perfect.

@kwundram2602
Copy link
Contributor Author

Okay , I have commited the change of the evi formula @PondiB

Copy link
Owner

@PondiB PondiB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@PondiB PondiB changed the base branch from main to develop January 21, 2024 16:43
@PondiB PondiB merged commit 6286515 into PondiB:develop Jan 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants