Code Monkey home page Code Monkey logo

dash-app's Introduction

Satellite Datathon Dash App

Live demo on Heroku: https://satellite-dash-app.herokuapp.com/

This dash app presents data from satellite images of sugar cane farms from North East Queensland from 2016 to 2019, and was created as part of the Data Science Melbourne Datathon, August - November 2019.

For the competition, our team built a choropleth & time series app to provide insights on the harvesting of sugar cane farms for mill processors, fulfilling the requirement of building an interactive Data2App website.

The live demo, code repository and final video presentation are also available online.

dash app demo

In the first view 'Harvest by Tile', a time series of harvested sugar cane values are shown depending on the choropleth tile selected by the user. The time series graph displays the amount of sugar harvested and provides an indication of peak harvest periods. The lighter colours indicate more productive sugar cane farm areas.

In the second view 'Aggregate Harvest', an aggregate time series of harvested values is shown, with a choropleth map of sugar cane area reflecting the time period selected by the user, by clicking on the line graph.

Further Details

Sugar cane harvest amounts were determined by processing 512 x 512 images based on the gradation of colour of sugar pixels (green as compared with red, green and blue).

Figure 1: Example Sugar Cane Tile Image

This required an adjustement for masked images to filter out non sugar cane farm regions, while the satellites also captured images across 10 colour frequency bands.

Figure 2: Harvested Regions in Example Sugar Cane Tile Image

Figure 3: Example of Tile Image with Cloud Cover

Figure 4: Example of Mask from Cloud Cover Detection

We accessed the sentinel-hub api to identify masks of cloud cover. Their service applied a machine learning method on a larger hand-coded dataset across mutiple colour frequency bands.

To help determine optimal harvest time, a vegetation index was calculated from pixel values from two of the colour frequencies.

# main dash app files and dir structure

- app.py
- index.py
- apps
   |-- __init__.py
   |-- app1.py
   |-- app2.py

Instructions

To run: python index.py as opposed to python -m flask run for single page dash apps

web: gunicorn index:server --timeout 300

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.