Skip to content

Latest commit

 

History

History

ndvi-diff

Cloudbutton Geospatial Use Case: NDVI Calculation

This pipeline contains a NDVI calculation process that consumes Sentinel2 satellite image from the AWS Sentinel2 open data repository.

Requirements

- An AWS Account
- Lithops 3.1.0
- Python3.10

Instructions

To execute this notebook you need:

  1. Clone the repository of cloudbutton_geospatial.

  2. Build the conda environment described in here.

  3. Upgrade Lithops and botocore:

    $ pip install --upgrade lithops==3.1.0 botocore s3fs
  4. Setup Lithops to work with AWS Lambda.

  5. 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
  6. Follow the instructions in the notebook to execute the code using the cloudbutton-geospatial kernel.

  7. 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.