Skip to content
Snippets Groups Projects
Commit 579f21e1 authored by nabil.abdennad's avatar nabil.abdennad
Browse files

updates

parent eaa9919e
Branches main
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ Follow these steps to configure your lambda function: ...@@ -23,7 +23,7 @@ Follow these steps to configure your lambda function:
* For the runtime environment, select Python 3.10. * For the runtime environment, select Python 3.10.
* Under permissions, choose the exisiting role **faas_ndvi_role**. * Under permissions, choose the exisiting role **faas_ndvi_role**.
2. Dependency Management: 2. Dependency Management:
Add a custom layer named **ndvi-rioxarray**. This layer should include the rioxarray library along with any other dependencies necessary for processing NDVI images. Add a custom layer named **rioxarray**. This layer should include the rioxarray library along with any other dependencies necessary for processing NDVI images.
3. Function Code: 3. Function Code:
In the Lambda function's code editor, paste the contents of the **Compute NDVI Mean.py** script. This script contains the logic to read an NDVI image, compute its mean NDVI value using rioxarray, and return the computed mean. In the Lambda function's code editor, paste the contents of the **Compute NDVI Mean.py** script. This script contains the logic to read an NDVI image, compute its mean NDVI value using rioxarray, and return the computed mean.
4. Go to 'Configuration'. Edit 'General configuration': 4. Go to 'Configuration'. Edit 'General configuration':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment