Coder Social home page Coder Social logo

chatter3 / treecertificates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alanmarko/treecertificates

0.0 0.0 0.0 30 KB

This project implements interface that creates blockchain-based certificates linked to the existence of trees, so that, if a tree is damaged or cut down, the certificate is declared void.

Python 100.00%

treecertificates's Introduction

TreeCertificates

A significant problem with forest conservation and tree planting efforts is that there is currently no way to guarantee that a conserved forest or tree planted would continue to be in existence at some future time. Yet, credit is given at the time of tree planting or when a forest conservation action is taken. This sets up a perverse incentive for a tree planter to make no effort to conserve trees after payment has been received.

This project implements interface that creates blockchain-based certificates linked to the existence of trees, so that, if a tree is damaged or cut down, the certificate is declared void. Specifically, it links satellite data to per-tree certificates on a blockchain. If a satellite image discovers that a tree is no longer present, then this would be certified by an independent third-party, such as WCMC and placed on the blockchain, as well. This could trigger either penalty payments or a reduction in the number of carbon credits available to the tree planter.

The application in its current form allows the user to specify the area of a forest(e.g. Gola Rainforest National Park). The application then downloads data from Hansen dataset decribing the state of the forest, calculates the amount of carbon stored inside of the area and also checks whether there are no other certificates already in this area. If not, the application creates new certificate for the forest storing both area information and the amount of carbon. It is then possible to modify the certificate or recalculate it in case that the amount of carbon stored has changed(for example because some trees were cut).

Installing

Step 0.

In order to run the application, you need to have installed Anaconda3 terminal with python 3.7 on a Windows device.

Step 1.

Recreate the enviroment used by:

conda env create -f environment.yml

Activate using

conda activate gdal_test

Step 2.

As the application uses the earth engine it is necessary to first create an account at

and also register at

It should take less then 24 hours to receive the authorisation. Inside of the develepers console you should create a new Earth Engine API and download client_secrets.json file using the download button as described here:

Finally replace the exisiting client_secrets.json file inside of TreeCertificates with the newly created one.

Step 3.

In order to upload data to Google drive, the application asks for a file id. It can be any file from your google drive account. You can just select the file and copy the id from the url.

Step 4.

You nee to download AVITABILE map from *http://lucid.wur.nl/storage/downloads/high-carbon-ecosystems/Avitabile_AGB_Map.zip and put Avitabile_AGB_Map.tif file to into TreeCertificates folder.

Step 5.

You can then run the application using:

python CertificationDemo.py

treecertificates's People

Contributors

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