Skip to content

thaole16/greengraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

========== Greengraph

Greengraph generates a graph of the porportion of green pixels in a series of satellite images between two points (locations on Earth). As input, it will take in the names of the two locations, along with the number of steps/points to sample in-between. Whether a point is green or not is determined by whether it is "more green" than it is red or blue.

The greengraph.py code is taken from the appendix of the MPHYG001 First Continous Assessment.pdf , which in turn comes from UCL Research Software Engineering course

Requirements

This package runs/has been tested on Python 2.7

Installation Instructions

To install via pip:

pip install git+https://github.com/thaole16/greengraph.git

Otherwise, you can download Greengraph

Typical Usage

Typical usage would look like this:

#!/usr/bin/env python

from greengraph.greengraph import Greengraph, Map
from matplotlib import pyplot as plt

mygraph=Greengraph('New York','Chicago')
data = mygraph.green_between(20)
plt.plot(data)

Alternatively, commandline usage would look like this:

greengraph --start "New York" --end "Chicago" --steps 20 --imageout dataplot.png --dataout data.txt

About

greenery plotting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages