fastcubo


Namefastcubo JSON
Version 0.1.6 PyPI version JSON
download
home_pagehttps://github.com/csaybar/fastcubo
Summary🏎💨vroom vroom - data downloader
upload_time2024-08-27 17:14:30
maintainerNone
docs_urlNone
authorCesar Aybar
requires_python<4.0,>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 
<p align="center">
  <img src="https://huggingface.co/datasets/JulioContrerasH/DataMLSTAC/resolve/main/banner.png" width="100%">
</p>

<p align="center">
    <em>A Python package for efficient processing of cubic earth observation (EO) data</em> 🚀
</p>

<p align="center">
<a href='https://pypi.python.org/pypi/fastcubo'>
    <img src='https://img.shields.io/pypi/v/fastcubo.svg' alt='PyPI' />
</a>
<a href="https://opensource.org/licenses/MIT" target="_blank">
    <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
</a>
<a href="https://github.com/psf/black" target="_blank">
    <img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Black">
</a>
<a href="https://pycqa.github.io/isort/" target="_blank">
    <img src="https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336" alt="isort">
</a>
</p>

---

**GitHub**: [https://github.com/IPL-UV/fastcubo](https://github.com/IPL-UV/fastcubo) 🌐

**PyPI**: [https://pypi.org/project/fastcubo/](https://pypi.org/project/fastcubo/) 🛠️

---

## **Overview 📊**

**FastCubo** is a powerful and simple API, inspired by the [cubo](https://github.com/ESDS-Leipzig/cubo) package, designed to simplify and accelerate the process of working with Google Earth Engine (GEE) data. FastCubo offers an optimized interface for creating and managing data cubes, enabling operations up to 10 times faster than traditional methods. Whether you're working with single images, collections, or complex computations, FastCubo provides the tools you need to handle large datasets efficiently.

## **Key Features ✨**
- **Fast Image and Collection downloads**: Retrieve images and image collections from GEE with unparalleled speed, leveraging multi-threaded downloads. 📥
- **Efficient data cube management**: Split large images into smaller, manageable sub-cubes for optimized processing. 🧩
- **Compute pixels with ease**: Perform complex pixel computations directly on GEE images, with results efficiently processed and downloaded. 🖥️
- **Scalable to large datasets**: Handle large-scale data without compromising performance, thanks to advanced memory and processing optimizations. 📈

## **Installation ⚙️**
Install the latest version from PyPI:

```bash
pip install fastcubo
```

## **How to use 🛠️**


### **Download a `ee.Image` 🌍**

```python
import ee
import fastcubo

ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com")


table = fastcubo.query_getPixels_image(
    points=[(-76.5, -9.5), (-76.5, -10.5), (-77.5, -10.5)],
    collection="NASA/NASADEM_HGT/001",
    bands=["elevation"],
    edge_size=128,
    resolution=90
)

fastcubo.getPixels(table, nworkers=4, output_path="demo1")
```

### **Download a `ee.ImageCollection` 📚**

```python
import fastcubo
import ee

ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com")

table = fastcubo.query_getPixels_imagecollection(
    point=(51.079225, 10.452173),
    collection="COPERNICUS/S2_HARMONIZED",
    bands=["B4","B3","B2"],
    data_range=["2016-06-01", "2017-07-01"],
    edge_size=128,
    resolution=10,
)
fastcubo.getPixels(table, nworkers=4, output_path="demo2")
```


### **Download a `ee.Image` Compute Pixels 🧮**

```python
import fastcubo
import ee

ee.Initialize(opt_url="https://earthengine-highvolume.googleapis.com")

table = fastcubo.query_computePixels_image(
    points=[(-76.5, -9.5), (-76.5, -10.5), (-77.5, -10.5)],
    expression=ee.Image("NASA/NASADEM_HGT/001").divide(1000),
    bands=["elevation"],
    edge_size=128,
    resolution=90
)
fastcubo.computePixels(table, nworkers=4, output_path="demo3")
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/csaybar/fastcubo",
    "name": "fastcubo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Cesar Aybar",
    "author_email": "fcesar.aybar@uv.es",
    "download_url": "https://files.pythonhosted.org/packages/0e/18/1572d6ed3f335d21ac4559959a1c6630b4eddaadcd6c6864376228dbdba0/fastcubo-0.1.6.tar.gz",
    "platform": null,
    "description": "# \n<p align=\"center\">\n  <img src=\"https://huggingface.co/datasets/JulioContrerasH/DataMLSTAC/resolve/main/banner.png\" width=\"100%\">\n</p>\n\n<p align=\"center\">\n    <em>A Python package for efficient processing of cubic earth observation (EO) data</em> \ud83d\ude80\n</p>\n\n<p align=\"center\">\n<a href='https://pypi.python.org/pypi/fastcubo'>\n    <img src='https://img.shields.io/pypi/v/fastcubo.svg' alt='PyPI' />\n</a>\n<a href=\"https://opensource.org/licenses/MIT\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/License-MIT-blue.svg\" alt=\"License\">\n</a>\n<a href=\"https://github.com/psf/black\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/code%20style-black-000000.svg\" alt=\"Black\">\n</a>\n<a href=\"https://pycqa.github.io/isort/\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336\" alt=\"isort\">\n</a>\n</p>\n\n---\n\n**GitHub**: [https://github.com/IPL-UV/fastcubo](https://github.com/IPL-UV/fastcubo) \ud83c\udf10\n\n**PyPI**: [https://pypi.org/project/fastcubo/](https://pypi.org/project/fastcubo/) \ud83d\udee0\ufe0f\n\n---\n\n## **Overview \ud83d\udcca**\n\n**FastCubo** is a powerful and simple API, inspired by the [cubo](https://github.com/ESDS-Leipzig/cubo) package, designed to simplify and accelerate the process of working with Google Earth Engine (GEE) data. FastCubo offers an optimized interface for creating and managing data cubes, enabling operations up to 10 times faster than traditional methods. Whether you're working with single images, collections, or complex computations, FastCubo provides the tools you need to handle large datasets efficiently.\n\n## **Key Features \u2728**\n- **Fast Image and Collection downloads**: Retrieve images and image collections from GEE with unparalleled speed, leveraging multi-threaded downloads. \ud83d\udce5\n- **Efficient data cube management**: Split large images into smaller, manageable sub-cubes for optimized processing. \ud83e\udde9\n- **Compute pixels with ease**: Perform complex pixel computations directly on GEE images, with results efficiently processed and downloaded. \ud83d\udda5\ufe0f\n- **Scalable to large datasets**: Handle large-scale data without compromising performance, thanks to advanced memory and processing optimizations. \ud83d\udcc8\n\n## **Installation \u2699\ufe0f**\nInstall the latest version from PyPI:\n\n```bash\npip install fastcubo\n```\n\n## **How to use \ud83d\udee0\ufe0f**\n\n\n### **Download a `ee.Image` \ud83c\udf0d**\n\n```python\nimport ee\nimport fastcubo\n\nee.Initialize(opt_url=\"https://earthengine-highvolume.googleapis.com\")\n\n\ntable = fastcubo.query_getPixels_image(\n    points=[(-76.5, -9.5), (-76.5, -10.5), (-77.5, -10.5)],\n    collection=\"NASA/NASADEM_HGT/001\",\n    bands=[\"elevation\"],\n    edge_size=128,\n    resolution=90\n)\n\nfastcubo.getPixels(table, nworkers=4, output_path=\"demo1\")\n```\n\n### **Download a `ee.ImageCollection` \ud83d\udcda**\n\n```python\nimport fastcubo\nimport ee\n\nee.Initialize(opt_url=\"https://earthengine-highvolume.googleapis.com\")\n\ntable = fastcubo.query_getPixels_imagecollection(\n    point=(51.079225, 10.452173),\n    collection=\"COPERNICUS/S2_HARMONIZED\",\n    bands=[\"B4\",\"B3\",\"B2\"],\n    data_range=[\"2016-06-01\", \"2017-07-01\"],\n    edge_size=128,\n    resolution=10,\n)\nfastcubo.getPixels(table, nworkers=4, output_path=\"demo2\")\n```\n\n\n### **Download a `ee.Image` Compute Pixels \ud83e\uddee**\n\n```python\nimport fastcubo\nimport ee\n\nee.Initialize(opt_url=\"https://earthengine-highvolume.googleapis.com\")\n\ntable = fastcubo.query_computePixels_image(\n    points=[(-76.5, -9.5), (-76.5, -10.5), (-77.5, -10.5)],\n    expression=ee.Image(\"NASA/NASADEM_HGT/001\").divide(1000),\n    bands=[\"elevation\"],\n    edge_size=128,\n    resolution=90\n)\nfastcubo.computePixels(table, nworkers=4, output_path=\"demo3\")\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "\ud83c\udfce\ud83d\udca8vroom vroom - data downloader",
    "version": "0.1.6",
    "project_urls": {
        "Documentation": "https://csaybar.github.io/fastcubo/",
        "Homepage": "https://github.com/csaybar/fastcubo",
        "Repository": "https://github.com/csaybar/fastcubo"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "449748a9de8fb22f531d6a6f827e7c0e3dc3cd40d306ac9507c441b1d37ddc1f",
                "md5": "b6b59dd7c09bca4eb2d1fc97f2eb8946",
                "sha256": "6a79f08073f7d8772151161fd8170d81514f44c5357921704a113725785d8217"
            },
            "downloads": -1,
            "filename": "fastcubo-0.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b6b59dd7c09bca4eb2d1fc97f2eb8946",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 8813,
            "upload_time": "2024-08-27T17:14:27",
            "upload_time_iso_8601": "2024-08-27T17:14:27.849855Z",
            "url": "https://files.pythonhosted.org/packages/44/97/48a9de8fb22f531d6a6f827e7c0e3dc3cd40d306ac9507c441b1d37ddc1f/fastcubo-0.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e181572d6ed3f335d21ac4559959a1c6630b4eddaadcd6c6864376228dbdba0",
                "md5": "3485437234ef0416f8c5d08fad304f68",
                "sha256": "85459346ded32cdd090d455ea4034c35a4de3e42dc947e75bf64f1c8131a765d"
            },
            "downloads": -1,
            "filename": "fastcubo-0.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "3485437234ef0416f8c5d08fad304f68",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 9665,
            "upload_time": "2024-08-27T17:14:30",
            "upload_time_iso_8601": "2024-08-27T17:14:30.183168Z",
            "url": "https://files.pythonhosted.org/packages/0e/18/1572d6ed3f335d21ac4559959a1c6630b4eddaadcd6c6864376228dbdba0/fastcubo-0.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-27 17:14:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "csaybar",
    "github_project": "fastcubo",
    "github_not_found": true,
    "lcname": "fastcubo"
}
        
Elapsed time: 0.26479s