Coder Social home page Coder Social logo

agro_fusion's Introduction

Readme for agro_fusion

Overview

This is a repo that is used to store all the agro fusion code prototyping. I used this project to look into using Geographic Information System tools to perform analytics on vineyards. This repo ingests Landsat 8 products, locates the optical bands of interest, scales the output to represent physical values and performs NDVI calculations.

Example output

The below images are the outline and an NDVI example output using the code in this repo. The imagery used for this analysis was taken on 07/13/2015. The coordinates for the north east corner of the property are [34.627310756333465,-120.27924031019211]. The property is Ampelos Vineyard near Buellton, CA.

Vineyard Outline: The image here is used to indicate the outline of the evaluated vineyard. The image is not used for analytics.

![Vineyard Outline] (https://github.com/airvette/agro_fusion/blob/master/ampelos_geometry.png)

NDVI Output: Output from the boundary above. Brown pixels inside the boundary indicate an NDVI close to -1, white pixels are close to 0 and green pixels indicate values close to +1.

![NDVI Output] (https://github.com/airvette/agro_fusion/blob/master/ampelosTestFig(1611).png)

Contents

This repo contains the primary module agfuse.py that when used with createSphScript.py and analysisScript.py provide rudimentary insights into NDVI calculations for the identified area. While this repo is used for vineyards, these calculations will deliver NDVI results for any imagery. This repo also contains various test scripts.

Workflow

Note that to use this package several Python packages need to be installed onto the host. See the text file to see what was installed on my system to run the package. Windows 7 (and later 10) was the operating system.

  1. Locate the place on the planet that the analysis should be run. Create the boundary using a tool such as the gmap pedometer and save the boundary points.

  2. Paste the coordinates into the script createSphScript.py and run. This creates a shapefile that will be needed to perform the analysis.

  3. Download the Landsat data for the date of interest. EarthExplorer is a good place to start, but some personal exploration will probably be needed to find the desired data.

  4. Run analysisScript.py. Make sure analysisScript.py points to the files you want to do the NDVI analysis. Note that Band 4 (visual red) and Band 5 (near infrared) are the required bands for NDVI analysis.

agro_fusion's People

Contributors

airvette avatar

Watchers

James Cloos avatar Jim avatar

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.