This pipeline contains a NDVI calculation process that consumes Sentinel2 satellite image from the AWS Sentinel2 open data repository.
- An AWS Account
- Lithops 3.1.0
- Python3.10
To execute this notebook you need:
-
Clone the repository of cloudbutton_geospatial.
-
Build the conda environment described in here.
-
Upgrade Lithops and botocore:
$ pip install --upgrade lithops==3.1.0 botocore s3fs
-
Setup Lithops to work with AWS Lambda.
-
Deploy the AWS Lambda Lithops runtime prepared for this workflow following this instructions using the Docker file
'Dockerfile'
in the runtime directory:$ lithops runtime build -f Dockerfile cloudbutton-ndvi:01
$ lithops runtime deploy cloudbutton-ndvi:01 --memory 1024
-
Follow the instructions in the notebook to execute the code using the cloudbutton-geospatial kernel.
-
In order to make sure to process some images you can use the default configuration with the default dates, value of 15 for cloud cover and the california coordinates named
'cali_coord'
.
Note: you can modify the runtime name but then you will need to edit it in the corresponding cells too.