<div id="top"></div>
<!-- PROJECT SHIELDS -->
<!--
*** I'm using markdown "reference style" links for readability.
*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).
*** See the bottom of this document for the declaration of the reference variables
*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
*** https://www.markdownguide.org/basic-syntax/#reference-style-links
-->
[](https://pypi.python.org/pypi/geeml)
[](https://anaconda.org/conda-forge/geeml)
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
<!-- PROJECT LOGO -->
<br />
<div align="center">
<a href="https://github.com/Geethen/geeml">
<img src="./images/logo2_GEEML.png" alt="Logo" width="400" height="400">
</a>
<h3 align="center">GEEML: Google Earth Engine Machine learning</h3>
<p align="center">
A python package to extract gee data for machine learning.
<br />
<a href="https://Geethen.github.io/geeml"><strong>Explore the documentation »</strong></a>
<br />
<br />
<a href="https://github.com/Geethen/geeml">View Demo</a>
·
<a href="https://github.com/Geethen/geeml/issues">Report Bug</a>
·
<a href="https://github.com/Geethen/geeml/issues">Request Feature</a>
</p>
</div>
<!-- TABLE OF CONTENTS -->
<details>
<summary>Table of Contents</summary>
<ol>
<li>
<a href="#about-the-project">About The Project</a>
</li>
<li>
<a href="#getting-started">Getting Started</a>
<ul>
<li><a href="#installation">Installation</a></li>
</ul>
</li>
<li><a href="#usage">Basic Usage</a></li>
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#contributing">Contributing</a></li>
<li><a href="#license">License</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#acknowledgments">Acknowledgments</a></li>
</ol>
</details>
<!-- ABOUT THE PROJECT -->
## About The Project
This python package makes it easier to extract satellite data from Google Earth Engine using parallel processing and the Google Earth Engine high volume end point.
In its current state it supports the extraction of data for traditional machine learning (tabular data) in the form of csv's and the extraction of GeoTiff image patches for Deep Neural Networks.
#### Motivation
The Machine learning capabilities in the GEE JS code editor remain limited. For example, there is no support for XGBoost, LightGBM, NGBoost, etc. Moreover, the python ecosystem has much more support for training, valdation and hyperparameter tuning. However, for this functionality to be leveraged, data needs to be downloaded locally or stored in Google Drive or Google Cloud Storage to benefit from the Machine learning python ecosystem. Therfore, this package aims to make it easier and faster to download GEE-processed data in a machine learning-ready format.
**Features**
* Parallel export of images or sparse images (for example, GEDI).
* Export raster values at points or polygons (ee.FeatureCollection).
* Summarise raster data within polygons (ee.FeatureCollections).
* Extract both tabular and Deep Neural Network (DNN) type datasets.
<!-- GETTING STARTED -->
## Getting Started
### Installation
To install this package:
1. pip
```sh
pip install geeml
```
2. Build from source (latest version)
```sh
pip install git+https://github.com/Geethen/geeml.git
```
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- USAGE EXAMPLES -->
## Basic usage
Download the NASADEM elevation data for Kenya.
```python
#import packages
import ee
from geeml.utils import getCountry
from geeml.extract import extractor
# Authenticate GEE
ee.Authenticate()
# Initialize GEE with high-volume end-point
ee.Initialize(opt_url='https://earthengine-highvolume.googleapis.com')
# Import datasets from GEE
nasadem = ee.Image("NASA/NASADEM_HGT/001")
# A point in Kenya
poi = ee.Geometry.Point([37.857884,-0.002197])
kenya = getCountry(poi)
# Download directory
dd = '/content/drive/MyDrive/geeml_example'
# Prepare for data extraction
trialExtractor = extractor(covariates=nasadem, aoi = kenya, scale= 5000, dd= dd)
# Extract data
trialExtractor.extractAoi()
```
_For more examples, please refer to the [Documentation](https://geethen.github.io/geeml/notebooks/example/)_
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- ROADMAP -->
## Roadmap
- [ ] Support the export of additional formats (TFrecords)
- [ ] Download data from GEE based on local shapefiles
- [ ] Add more examples for using the package
See the [open issues](https://github.com/Geethen/geeml/issues) for a full list of proposed features (and known issues).
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- CONTRIBUTING -->
## Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- LICENSE -->
## License
Distributed under the MIT License. See `LICENSE.txt` for more information.
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- CONTACT -->
## Contact
Geethen Singh - [@Geethen](https://twitter.com/Geethen) - geethen.singh@gmail.com
Project Link: [https://github.com/Geethen/geeml](https://github.com/Geethen/geeml)
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- ACKNOWLEDGMENTS -->
## Acknowledgments
* [Natural State](https://www.naturalstate.org/)
* [University of the Witwatersrand](https://www.wits.ac.za/)
* [Fitz patrick centre for african ornithology](http://www.fitzpatrick.uct.ac.za/)
This package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter) and the [giswqs/pypackage](https://github.com/giswqs/pypackage) project template.
This package uses the [geedim](https://pypi.org/project/geedim/) package for extracting image data at an AOI
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- MARKDOWN LINKS & IMAGES -->
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
[contributors-shield]: https://img.shields.io/github/contributors/Geethen/geeml.svg?style=for-the-badge
[contributors-url]: https://github.com/Geethen/geeml/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/Geethen/geeml.svg?style=for-the-badge
[forks-url]: https://github.com/Geethen/geeml/network/members
[stars-shield]: https://img.shields.io/github/stars/Geethen/geeml.svg?style=for-the-badge
[stars-url]: https://github.com/Geethen/geeml/stargazers
[issues-shield]: https://img.shields.io/github/issues/Geethen/geeml.svg?style=for-the-badge
[issues-url]: https://github.com/Geethen/geeml/issues
[license-shield]: https://img.shields.io/github/license/Geethen/geeml.svg?style=for-the-badge
[license-url]: https://github.com/Geethen/geeml/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/linkedin_username
[product-screenshot]: images/screenshot.png
Raw data
{
"_id": null,
"home_page": "https://github.com/Geethen/geeml",
"name": "geeml",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "geeml",
"author": "Geethen Singh",
"author_email": "geethen.singh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b3/c7/dd4a7afd2ae02b831a3ebb489279290c9b37f97cf1c765b1a6ace379cf6f/geeml-0.0.7.tar.gz",
"platform": null,
"description": "<div id=\"top\"></div>\n\n<!-- PROJECT SHIELDS -->\n<!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n-->\n[](https://pypi.python.org/pypi/geeml)\n[](https://anaconda.org/conda-forge/geeml)\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n\n<!-- PROJECT LOGO -->\n<br />\n<div align=\"center\">\n <a href=\"https://github.com/Geethen/geeml\">\n <img src=\"./images/logo2_GEEML.png\" alt=\"Logo\" width=\"400\" height=\"400\">\n </a>\n\n<h3 align=\"center\">GEEML: Google Earth Engine Machine learning</h3>\n\n <p align=\"center\">\n A python package to extract gee data for machine learning.\n <br />\n <a href=\"https://Geethen.github.io/geeml\"><strong>Explore the documentation \u00bb</strong></a>\n <br />\n <br />\n <a href=\"https://github.com/Geethen/geeml\">View Demo</a>\n \u00b7\n <a href=\"https://github.com/Geethen/geeml/issues\">Report Bug</a>\n \u00b7\n <a href=\"https://github.com/Geethen/geeml/issues\">Request Feature</a>\n </p>\n</div>\n\n\n\n<!-- TABLE OF CONTENTS -->\n<details>\n <summary>Table of Contents</summary>\n <ol>\n <li>\n <a href=\"#about-the-project\">About The Project</a>\n </li>\n <li>\n <a href=\"#getting-started\">Getting Started</a>\n <ul>\n <li><a href=\"#installation\">Installation</a></li>\n </ul>\n </li>\n <li><a href=\"#usage\">Basic Usage</a></li>\n <li><a href=\"#roadmap\">Roadmap</a></li>\n <li><a href=\"#contributing\">Contributing</a></li>\n <li><a href=\"#license\">License</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n <li><a href=\"#acknowledgments\">Acknowledgments</a></li>\n </ol>\n</details>\n\n\n\n<!-- ABOUT THE PROJECT -->\n## About The Project\nThis python package makes it easier to extract satellite data from Google Earth Engine using parallel processing and the Google Earth Engine high volume end point.\n\nIn its current state it supports the extraction of data for traditional machine learning (tabular data) in the form of csv's and the extraction of GeoTiff image patches for Deep Neural Networks.\n\n#### Motivation\nThe Machine learning capabilities in the GEE JS code editor remain limited. For example, there is no support for XGBoost, LightGBM, NGBoost, etc. Moreover, the python ecosystem has much more support for training, valdation and hyperparameter tuning. However, for this functionality to be leveraged, data needs to be downloaded locally or stored in Google Drive or Google Cloud Storage to benefit from the Machine learning python ecosystem. Therfore, this package aims to make it easier and faster to download GEE-processed data in a machine learning-ready format. \n\n**Features**\n* Parallel export of images or sparse images (for example, GEDI).\n* Export raster values at points or polygons (ee.FeatureCollection).\n* Summarise raster data within polygons (ee.FeatureCollections).\n* Extract both tabular and Deep Neural Network (DNN) type datasets.\n\n<!-- GETTING STARTED -->\n## Getting Started\n\n### Installation\nTo install this package:\n\n1. pip \n ```sh\n pip install geeml\n ```\n2. Build from source (latest version)\n ```sh\n pip install git+https://github.com/Geethen/geeml.git\n ```\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n<!-- USAGE EXAMPLES -->\n## Basic usage\nDownload the NASADEM elevation data for Kenya.\n\n ```python\n #import packages\n import ee\n from geeml.utils import getCountry\n from geeml.extract import extractor\n\n # Authenticate GEE\n ee.Authenticate()\n # Initialize GEE with high-volume end-point\n ee.Initialize(opt_url='https://earthengine-highvolume.googleapis.com')\n \n # Import datasets from GEE\n nasadem = ee.Image(\"NASA/NASADEM_HGT/001\")\n # A point in Kenya\n poi = ee.Geometry.Point([37.857884,-0.002197])\n kenya = getCountry(poi)\n\n # Download directory\n dd = '/content/drive/MyDrive/geeml_example'\n\n # Prepare for data extraction\n trialExtractor = extractor(covariates=nasadem, aoi = kenya, scale= 5000, dd= dd)\n\n # Extract data\n trialExtractor.extractAoi()\n ```\n\n_For more examples, please refer to the [Documentation](https://geethen.github.io/geeml/notebooks/example/)_\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n\n<!-- ROADMAP -->\n## Roadmap\n\n- [ ] Support the export of additional formats (TFrecords)\n- [ ] Download data from GEE based on local shapefiles\n- [ ] Add more examples for using the package\n\nSee the [open issues](https://github.com/Geethen/geeml/issues) for a full list of proposed features (and known issues).\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n\n<!-- CONTRIBUTING -->\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n\n<!-- LICENSE -->\n## License\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n\n<!-- CONTACT -->\n## Contact\n\nGeethen Singh - [@Geethen](https://twitter.com/Geethen) - geethen.singh@gmail.com\n\nProject Link: [https://github.com/Geethen/geeml](https://github.com/Geethen/geeml)\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n\n<!-- ACKNOWLEDGMENTS -->\n## Acknowledgments\n\n* [Natural State](https://www.naturalstate.org/)\n* [University of the Witwatersrand](https://www.wits.ac.za/)\n* [Fitz patrick centre for african ornithology](http://www.fitzpatrick.uct.ac.za/)\n\nThis package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter) and the [giswqs/pypackage](https://github.com/giswqs/pypackage) project template.\n\nThis package uses the [geedim](https://pypi.org/project/geedim/) package for extracting image data at an AOI\n\n<p align=\"right\">(<a href=\"#top\">back to top</a>)</p>\n\n\n\n<!-- MARKDOWN LINKS & IMAGES -->\n<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->\n[contributors-shield]: https://img.shields.io/github/contributors/Geethen/geeml.svg?style=for-the-badge\n[contributors-url]: https://github.com/Geethen/geeml/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/Geethen/geeml.svg?style=for-the-badge\n[forks-url]: https://github.com/Geethen/geeml/network/members\n[stars-shield]: https://img.shields.io/github/stars/Geethen/geeml.svg?style=for-the-badge\n[stars-url]: https://github.com/Geethen/geeml/stargazers\n[issues-shield]: https://img.shields.io/github/issues/Geethen/geeml.svg?style=for-the-badge\n[issues-url]: https://github.com/Geethen/geeml/issues\n[license-shield]: https://img.shields.io/github/license/Geethen/geeml.svg?style=for-the-badge\n[license-url]: https://github.com/Geethen/geeml/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555\n[linkedin-url]: https://linkedin.com/in/linkedin_username\n[product-screenshot]: images/screenshot.png\n",
"bugtrack_url": null,
"license": "MIT license",
"summary": "A python package to extract gee data for machine learning.",
"version": "0.0.7",
"split_keywords": [
"geeml"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "963f61be9479c1d6d1bef26ebc790a058a473e9f26263dedb768dd0f71342141",
"md5": "86f63a147245f018bff3cf92b5d2c574",
"sha256": "f138e18ad24f65b97f7da272ba8b7f509dda6d0aee372bc4ad9b3fa356346431"
},
"downloads": -1,
"filename": "geeml-0.0.7-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "86f63a147245f018bff3cf92b5d2c574",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 14946,
"upload_time": "2023-01-18T21:48:35",
"upload_time_iso_8601": "2023-01-18T21:48:35.094885Z",
"url": "https://files.pythonhosted.org/packages/96/3f/61be9479c1d6d1bef26ebc790a058a473e9f26263dedb768dd0f71342141/geeml-0.0.7-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b3c7dd4a7afd2ae02b831a3ebb489279290c9b37f97cf1c765b1a6ace379cf6f",
"md5": "6c7ee71628cdb2a91c8f343f88ba4858",
"sha256": "d31ef210a21d1593049e43b0e90b50607568570e71f4b5197cb629f66c1b1301"
},
"downloads": -1,
"filename": "geeml-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "6c7ee71628cdb2a91c8f343f88ba4858",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 17252,
"upload_time": "2023-01-18T21:48:36",
"upload_time_iso_8601": "2023-01-18T21:48:36.361126Z",
"url": "https://files.pythonhosted.org/packages/b3/c7/dd4a7afd2ae02b831a3ebb489279290c9b37f97cf1c765b1a6ace379cf6f/geeml-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-18 21:48:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Geethen",
"github_project": "geeml",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "geeml"
}