Skip to main content

🏎💨vroom vroom - data downloader

Project description

A Python package for efficient processing of cubic earth observation (EO) data 🚀

PyPI License Black isort


GitHub: https://github.com/IPL-UV/fastcubo 🌐

PyPI: https://pypi.org/project/fastcubo/ 🛠️


Overview 📊

FastCubo is a powerful and simple API, inspired by the 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:

pip install fastcubo

How to use 🛠️

Download a ee.Image 🌍

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 📚

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 🧮

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastcubo-0.1.6.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastcubo-0.1.6-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file fastcubo-0.1.6.tar.gz.

File metadata

  • Download URL: fastcubo-0.1.6.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.66.1 urllib3/2.2.1 CPython/3.10.12

File hashes

Hashes for fastcubo-0.1.6.tar.gz
Algorithm Hash digest
SHA256 85459346ded32cdd090d455ea4034c35a4de3e42dc947e75bf64f1c8131a765d
MD5 3485437234ef0416f8c5d08fad304f68
BLAKE2b-256 0e181572d6ed3f335d21ac4559959a1c6630b4eddaadcd6c6864376228dbdba0

See more details on using hashes here.

File details

Details for the file fastcubo-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: fastcubo-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.32.3 rfc3986/1.5.0 tqdm/4.66.1 urllib3/2.2.1 CPython/3.10.12

File hashes

Hashes for fastcubo-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6a79f08073f7d8772151161fd8170d81514f44c5357921704a113725785d8217
MD5 b6b59dd7c09bca4eb2d1fc97f2eb8946
BLAKE2b-256 449748a9de8fb22f531d6a6f827e7c0e3dc3cd40d306ac9507c441b1d37ddc1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page