Giter Club home page Giter Club logo

waterbodies's Introduction

Digital Earth Africa logo

Digital Earth Africa Waterbodies

License

License: The code in this repository is licensed under the Apache License, Version 2.0. Digital Earth Africa data is licensed under the Creative Commons by Attribution 4.0 license.

Contact: For assistance with any of the Python code or Jupyter Notebooks in this repository, please post a Github issue.

Acknowledgments: The DE Africa Waterbodies workflow is adapted from the workflow originally developed by Geoscience Australia. Digital Earth Africa thanks the Digital Earth Africa Product Development task team for the co-design, the co-development and early feedback on the Service.

Citing Digital Earth Africa Waterbodies:

Krause, Claire E.; Newey, Vanessa; Alger, Matthew J.; Lymburner, Leo. 2021. “Mapping and Monitoring the Multi-Decadal Dynamics of Australia’s Open Waterbodies Using Landsat” Remote Sens. 13, no. 8: 1437. https://doi.org/10.3390/rs13081437

Introduction

Digital Earth Africa Waterbodies presents 2 workflows:

  • a workflow for generating polygons (historical extent) of persistent waterbodies from the Water Observations from Space All Time Summary product
  • and a workflow for generating the percentage of the historical extent that was classified as wet, dry, or invalid, for each Water Observation from Space Feature Layer scene that captured the water body.

Waterbodies Historical Extent Workflow Historical Extent Workflow

Waterbodies Surface Area Change Workflow Surface Area Change Workflow

Both Water Observation from Space products are part of the Water Observations from Space (WOfS) service which is a service that uses satellite images to provide historical surface water observations across the African continent. Data in this service is generated by applying Digital Earth Africa’s (DE Africa) Water Observations from Space (WOfS) water classifier, which provides a water classified output for every available Landsat scene.

Installation

Install with pip: pip install git+https://github.com/digitalearthafrica/waterbodies.git

Usage

Waterbodies provides a command-line tool waterbodies to generate the historical extent waterbodies polygons and the surface area change waterbody observations.

Descriptions of the commands are available using waterbodies --help.

Note: Waterbodies requires a Datacube configuration to work.

Contributing

The code in this repository is built on the Digital Earth Africa implementation of the Open Data Cube software for accessing, managing, and analyzing large quantities of Earth observation (EO) data. The code currently runs on the Digital Earth Africa Sandbox infrastructure.

Getting started

Clone the waterbodies repository:

git clone https://github.com/digitalearthafrica/waterbodies.git

Database set up

If testing the waterbodies tools on the Analysis Sandbox, Checkout the repository and rename the tables in the module waterbodies.db_models.py e.g. waterbodies_historical_extent_test to prevent changing data in the existing tables.

Add the waterbodies database credentials to a .env file in your HOME directory i.e. $HOME/.env

Pre-commit setup

❯ pip install pre-commit
❯ pre-commit install

Your code will now be formatted and validated before each commit by running pre-commit run -a

waterbodies's People

Contributors

vikineema avatar caitlinadams 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.