A Python package for efficient processing of cubic earth observation (EO) data 🚀
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")
Metadata
Release files for fastcubo 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastcubo-0.1.6.tar.gz | 9.7 kB | Without provenance | Details for fastcubo-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastcubo-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for fastcubo-0.1.6-py3-none-any.whl |
Total release size: 18.5 kB
Release files / fastcubo-0.1.6.tar.gz
| Download URL | fastcubo-0.1.6.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85459346ded32cdd090d455ea4034c35a4de3e42dc947e75bf64f1c8131a765d
|
|
BLAKE2b-256 checksum How to use checksums |
0e181572d6ed3f335d21ac4559959a1c6630b4eddaadcd6c6864376228dbdba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / fastcubo-0.1.6-py3-none-any.whl
| Download URL | fastcubo-0.1.6-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a79f08073f7d8772151161fd8170d81514f44c5357921704a113725785d8217
|
|
BLAKE2b-256 checksum How to use checksums |
449748a9de8fb22f531d6a6f827e7c0e3dc3cd40d306ac9507c441b1d37ddc1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for fastcubo 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.