@@ -47,7 +47,7 @@ This function will receive NDVI mean values over time, plot them, and generate a
...
@@ -47,7 +47,7 @@ This function will receive NDVI mean values over time, plot them, and generate a
* 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 **matplotlib**. This layer should include the rioxarray library necessary for plotting time series data.
Add a custom layer named **matplotlib**. This layer should include the matplotlib library necessary for plotting time series data.
3. Function Code:
3. Function Code:
In the Lambda function's code editor, paste the contents of the **Plot NDVI Time Series.py** script. This script contains the logic to plot the results, save it into png format and put it in S3 bucket.
In the Lambda function's code editor, paste the contents of the **Plot NDVI Time Series.py** script. This script contains the logic to plot the results, save it into png format and put it in S3 bucket.
4. Go to 'Configuration'. Edit 'General configuration':
4. Go to 'Configuration'. Edit 'General configuration':